-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove space members #2524
Remove space members #2524
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
db4a1ef
to
3562d92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG just small suggestions
9e40105
to
482e4cf
Compare
The last manager of a space can not be removed. If the user should be removed then a new manager need to be set. After that the user can be removed.
The integration tests needed to be updated since I removed the owner from project spaces. Now the tests don't depend on an owner being set.
482e4cf
to
5a0a4fd
Compare
@@ -803,16 +806,18 @@ func (n *Node) ReadUserPermissions(ctx context.Context, u *userpb.User) (ap prov | |||
o, err := n.Owner() | |||
if err != nil { | |||
// TODO check if a parent folder has the owner set? | |||
appctx.GetLogger(ctx).Error().Err(err).Interface("node", n).Msg("could not determine owner, returning default permissions") | |||
appctx.GetLogger(ctx).Error().Err(err).Str("node", n.ID).Msg("could not determine owner, returning default permissions") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you did there ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#nice
* remove owner from project spaces * block removal of last space manager The last manager of a space can not be removed. If the user should be removed then a new manager need to be set. After that the user can be removed. * check node properties instead of create-space permission * update integration tests The integration tests needed to be updated since I removed the owner from project spaces. Now the tests don't depend on an owner being set. * add changelog * add constants for space types and root node id
This reverts commit ce38775.
The delete request looks like this: