admin only show to staff
This commit is contained in:
		
							parent
							
								
									64fe9517c4
								
							
						
					
					
						commit
						62cbc28aff
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -26,7 +26,9 @@
 | 
			
		|||
                    <form style="margin: 0;" action="{% url account_logout %}" method="post">
 | 
			
		||||
                        <div class="btn-group">
 | 
			
		||||
                            <a class="btn" href="{% url dashboard %}">Dashboard</a>
 | 
			
		||||
                            {% if request.user.is_staff %}
 | 
			
		||||
                                <a class="btn" href="{% url admin:index %}">Admin</a>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                            <a class="btn" href="{% url account_settings %}">Settings</a>
 | 
			
		||||
                            {% csrf_token %}<button type="submit" class="btn">Log out</button>
 | 
			
		||||
                        </div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue