Skip to content
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

[ocis] Space admin can't edit space when not a member #5414

Closed
6 tasks
JammingBen opened this issue Jan 16, 2023 · 12 comments
Closed
6 tasks

[ocis] Space admin can't edit space when not a member #5414

JammingBen opened this issue Jan 16, 2023 · 12 comments
Labels

Comments

@JammingBen
Copy link
Contributor

JammingBen commented Jan 16, 2023

User Story

  • as a space Admin i want to edit basic properties of the space to help building an understandable and meaningful org structure

Value

  • Bring order to chaos :smile

Acceptance criteria

  • New Manage Properties permission

    • name
    • subtitle
  • New Enable / Disable a space permission

  • These permissions should be added to the "Space Admin" Role

  • Check the 2 new permissions in the DecomposedFS

Definition of ready

[ ] everybody needs to understand the value written in the user story
[ ] acceptance criteria has to be defined
[ ] all dependencies of the user story need to be identified
[ ] feature should be seen from an end user perspective
[ ] user story has to be estimated
[ ] story points need to be less then 20

Definition of done

  • Functional requirements
    [ ] functionality described in the user story works
    [ ] acceptance criteria are fulfilled
  • Quality
    [ ] code review happened
    [ ] CI is green
    [ ] critical code received unit tests by the developer
    [ ] automated tests passed (if automated tests are not available, this test needs to be created and passed
  • Non-functional requirements
    [ ] no sonar cloud issues
@JammingBen
Copy link
Contributor Author

@micbar fyi we noticed this with the new implementation of space management in Web.

@micbar
Copy link
Contributor

micbar commented Jan 16, 2023

good question. IMO needs to be discussed.

@exalate-issue-sync exalate-issue-sync bot changed the title Space admin can't edit space when not a member [ocis] Space admin can't edit space when not a member Jan 16, 2023
@kulmann
Copy link
Member

kulmann commented Jan 16, 2023

good question. IMO needs to be discussed.

The spaces section in the admin-settings app is pointless if I can't modify spaces where the I'm not a member. 😉

@ScharfViktor
Copy link
Contributor

ScharfViktor commented Jan 16, 2023

admin also cannot edit another user's space if he is not a member. he can increase the quota and disable/delete spaces.

The space admin was the user who could create the space. Now he is more than a creator of space, he want to manage other spaces. There will be few such users i think, less than those who only can create space. won't this be a problem in the future?

@JammingBen
Copy link
Contributor Author

Can this be closed as https://jira.owncloud.com/browse/OCIS-3278 is marked as "done"?

@JammingBen
Copy link
Contributor Author

JammingBen commented Feb 17, 2023

There still seem to be some issues with a space admin's default permissions:

  • A space admin can't update name and description of a space when they are not a member
  • A space admin can't enable a space when they are not a member
  • A space admin has the permission list-all-spaces.all, which seems to give them the ability to deactivate and delete spaces. Shouldn't this be handled by the permission delete-all-spaces.all? Because that one is missing.

cc @micbar

@kobergj
Copy link
Collaborator

kobergj commented Feb 24, 2023

@JammingBen is this fixed? I couldn't reproduce on current master

Regarding last question: There is a specific permission for enabling/disabling spaces. It's called Drive.ReadWriteEnabled (follows new naming scheme already)

@JammingBen
Copy link
Contributor Author

@JammingBen is this fixed? I couldn't reproduce on current master

Seems to be fixed on current master, thx!

Regarding last question: There is a specific permission for enabling/disabling spaces. It's called Drive.ReadWriteEnabled (follows new naming scheme already)

So Drive.ReadWriteEnabled also includes deleting spaces? Or which permission is handling that?

@kobergj
Copy link
Collaborator

kobergj commented Feb 24, 2023

No. Delete Spaces has also its own two permissions: delete-all-spaces and delete-all-home-spaces

@JammingBen
Copy link
Contributor Author

Okay, but that's the part I don't get. Because as space admin, I can delete spaces without having either of these permissions.

@kobergj
Copy link
Collaborator

kobergj commented Feb 24, 2023

True! I missed that one even though I implemented it myself 😄

You are absolutely right. Drive.ReadWriteEnabled also allows you to delete project spaces. Sorry for confusion.

@JammingBen
Copy link
Contributor Author

Okay, thanks for the clarification! Then we can close here I guess 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants