diff --git a/internal/acl/permissions.go b/internal/acl/permissions.go index a69c88b9f..d5933f51d 100644 --- a/internal/acl/permissions.go +++ b/internal/acl/permissions.go @@ -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}, }, } diff --git a/internal/entity/user_test.go b/internal/entity/user_test.go index ec5ebae64..a6c8d3c8e 100644 --- a/internal/entity/user_test.go +++ b/internal/entity/user_test.go @@ -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()) }) }