generated from VLADIMIR/template
fix
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// Package roles defines application roles and role checks.
|
||||
package roles
|
||||
|
||||
// Роли пользователей системы.
|
||||
const (
|
||||
Admin = "admin"
|
||||
Author = "author"
|
||||
@@ -9,7 +8,6 @@ const (
|
||||
User = "user"
|
||||
)
|
||||
|
||||
// AllRoles — список всех ролей.
|
||||
var AllRoles = []string{
|
||||
Admin,
|
||||
Author,
|
||||
@@ -17,7 +15,6 @@ var AllRoles = []string{
|
||||
User,
|
||||
}
|
||||
|
||||
// IHasRole — контракт субъекта, у которого можно проверить наличие роли.
|
||||
type IHasRole interface {
|
||||
HasRole(role string) bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user