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