1
This commit is contained in:
+2
-2
@@ -8,8 +8,8 @@ const (
|
||||
PermAdmin Perm = "admin"
|
||||
)
|
||||
|
||||
// PermRank gives perm a hierarchy for implication checks: a grant of rank N
|
||||
// satisfies a request of rank <= N.
|
||||
|
||||
|
||||
func (perm Perm) PermRank() int {
|
||||
switch perm {
|
||||
case PermAdmin:
|
||||
|
||||
Reference in New Issue
Block a user