Add scope function to user
Former-commit-id: 08aaaa52217e5ad950951536b440ff4fb60b80c4
This commit is contained in:
		
							parent
							
								
									713e564a6e
								
							
						
					
					
						commit
						ba4ea8e05c
					
				| 
						 | 
					@ -244,3 +244,8 @@ func (u User) Allowed(url string) bool {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return true
 | 
						return true
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Scope returns the user scope.
 | 
				
			||||||
 | 
					func (u User) Scope() string {
 | 
				
			||||||
 | 
						return u.scope
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue