rbac system first stage
This commit is contained in:
13
internal/roles/constants.go
Normal file
13
internal/roles/constants.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Package roles provides constants for the RBAC
|
||||
package roles
|
||||
|
||||
type Role string
|
||||
|
||||
func (r Role) String() string {
|
||||
return string(r)
|
||||
}
|
||||
|
||||
const (
|
||||
Admin Role = "admin"
|
||||
User Role = "user"
|
||||
)
|
||||
Reference in New Issue
Block a user