Add scope function to user
parent
ab9cf62450
commit
08aaaa5221
|
@ -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