Auth: Adapt tests #98
This commit is contained in:
parent
1d0949dad8
commit
c660a8f9c4
2 changed files with 4 additions and 4 deletions
|
@ -28,8 +28,8 @@ var Permissions = ACL{
|
|||
RoleMember: Actions{ActionSearch: true, ActionRead: true, ActionDownload: true},
|
||||
},
|
||||
ResourceUsers: Roles{
|
||||
//RoleDefault: Actions{ActionUpdateSelf: true},
|
||||
RoleAdmin: Actions{ActionUpdateSelf: true},
|
||||
RoleMember: Actions{ActionUpdateSelf: true},
|
||||
RoleDefault: Actions{ActionUpdateSelf: true},
|
||||
RoleAdmin: Actions{ActionUpdateSelf: true},
|
||||
RoleMember: Actions{ActionUpdateSelf: true},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -383,7 +383,7 @@ func TestUser_Role(t *testing.T) {
|
|||
})
|
||||
t.Run("default", func(t *testing.T) {
|
||||
p := User{UserUID: "u000000000000008", UserName: "Hanna", FullName: ""}
|
||||
assert.Equal(t, acl.Role("*"), p.Role())
|
||||
assert.Equal(t, acl.Role("member"), p.Role())
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue