Open-event-server: User with organizer or coorganizer role can delete other roles too

Created on 7 Jul 2019  路  2Comments  路  Source: fossasia/open-event-server

Describe the bug

Currently, a user with coorganizer access to an event can delete other organizers/coorganizers/owners too. But the user should be allowed to delete users with roles smaller than the user itself.

Expected behavior

User should be able to delete another user (having a role in the event), only if the user

Additional context

On it

bug weekly-testing

Most helpful comment

But the user should be allowed to delete users with roles smaller than the user itself.

In my opinion, either only owner should have the access to create/delete roles or only owner and organizers should have that access, with organizers being allowed to create/delete roles except that of owner.

All 2 comments

But the user should be allowed to delete users with roles smaller than the user itself.

In my opinion, either only owner should have the access to create/delete roles or only owner and organizers should have that access, with organizers being allowed to create/delete roles except that of owner.

So, only users with organizer access can create role-invites. The only problem lies with the delete function. Creating a PR for it

Was this page helpful?
0 / 5 - 0 ratings