generated from VLADIMIR/template
fix
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package roles
|
||||
|
||||
// HasRole возвращает true, если у субъекта есть роль; администратор
|
||||
// проходит проверку любой роли.
|
||||
func HasRole(claims IHasRole, role string) bool {
|
||||
if claims.HasRole(Admin) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user