mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Fixed #21325 -- Added missing argument to permission_required decorator.
This commit is contained in:
		
							parent
							
								
									3b0293370a
								
							
						
					
					
						commit
						cc2049cdd7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -492,7 +492,7 @@ checks to make sure the user has an email in the desired domain::
 | 
			
		|||
The permission_required decorator
 | 
			
		||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 | 
			
		||||
 | 
			
		||||
.. function:: permission_required([login_url=None, raise_exception=False])
 | 
			
		||||
.. function:: permission_required(perm, [login_url=None, raise_exception=False])
 | 
			
		||||
 | 
			
		||||
    It's a relatively common task to check whether a user has a particular
 | 
			
		||||
    permission. For that reason, Django provides a shortcut for that case: the
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue