Add scope function to user

Former-commit-id: 08aaaa5221
This commit is contained in:
Henrique Dias 2017-06-25 20:52:06 +01:00
parent 713e564a6e
commit ba4ea8e05c
1 changed files with 5 additions and 0 deletions

View File

@ -244,3 +244,8 @@ func (u User) Allowed(url string) bool {
return true
}
// Scope returns the user scope.
func (u User) Scope() string {
return u.scope
}