Fix permissions on photo add
This commit is contained in:
		
							parent
							
								
									346512ba80
								
							
						
					
					
						commit
						23f4b65be7
					
				| @ -11,6 +11,7 @@ | |||||||
| {% block content %} | {% block content %} | ||||||
|     <div class="photo"> |     <div class="photo"> | ||||||
|         <div class="photo__title h1">{{ photo.title }}</div> |         <div class="photo__title h1">{{ photo.title }}</div> | ||||||
|  |         {% if is_my %} | ||||||
|         <ul class="actions my-2"> |         <ul class="actions my-2"> | ||||||
|             <li class="actions__action"> |             <li class="actions__action"> | ||||||
|                 <a href="{% url 'edit_photo' photo.album.id photo.id %}" class="btn btn-sm btn-warning">Aktualizuj</a> |                 <a href="{% url 'edit_photo' photo.album.id photo.id %}" class="btn btn-sm btn-warning">Aktualizuj</a> | ||||||
| @ -22,6 +23,7 @@ | |||||||
|                 </form> |                 </form> | ||||||
|             </li> |             </li> | ||||||
|         </ul> |         </ul> | ||||||
|  |         {% endif %} | ||||||
|         <img class="photo__photo" src="{{ photo.photo.url }}" /> |         <img class="photo__photo" src="{{ photo.photo.url }}" /> | ||||||
|         <aside class="photo__meta"> |         <aside class="photo__meta"> | ||||||
|             <p class="photo__description my-2">{{ photo.description }}</p> |             <p class="photo__description my-2">{{ photo.description }}</p> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user