fix pyramid request.has_perm() for guests
This commit is contained in:
		
							parent
							
								
									0271672a57
								
							
						
					
					
						commit
						e9513206cd
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -76,8 +76,6 @@ def context_found(event):
 | 
			
		|||
        request.user = Session.query(edbob.User).get(uuid)
 | 
			
		||||
 | 
			
		||||
    def has_perm(perm):
 | 
			
		||||
        if not request.user:
 | 
			
		||||
            return False
 | 
			
		||||
        return has_permission(request.user, perm)
 | 
			
		||||
    request.has_perm = has_perm
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue