Auth: Adapt tests #98

This commit is contained in:
Timo Volkmann 2021-10-04 21:50:44 +02:00
parent 1d0949dad8
commit c660a8f9c4
2 changed files with 4 additions and 4 deletions

View file

@ -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},
},
}

View file

@ -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())
})
}