nccasia / mezon-fe

2 stars 1 forks source link

Mobile App: Update UI and logic for the Role & Permissions #2381

Open trucnguyen31 opened 3 months ago

trucnguyen31 commented 3 months ago

Update the list of permissions:

Image

I. Admin Permission

Admin has all the same permissions as Clan Owner Note:

Admin cannot kick the Clan Owner, The Clan Owner has the permission to kick Admin out of the clan. Admin cannot remove the role that has Admin permission. (Only Clan owner can remove such roles)

II. Manage Clan Permission

As a user with Manage Clan permission, I should have the following permissions in a Clan:

Manage Clan Permission cannot kick the Clan Owner and Admin. This role only has the right to kick members with lower rights.

Clan Settings:

As a user with Manage Clan permission, I want to see:

  1. Overview
  2. Emoji
  3. Stickers
  4. Notification Sound
  5. Integrations
  6. Delete Clan (Clan owner only)

Notification Settings: Manage Clan permission is required on this page

Events:

This role has permission to create/Cancel Events. (All permissions in Event Management)

III. View Channel Permission

As a user with View Channel Permission, I should be able to view all public Text/Voice Channels, Threads For private channels, you have to view the channel if you are a member. Note: You don't have permission to send and respond to messages.

IV. Manage Channel Permission

As a user with Manage Channel Permission, I should have the following permissions:

Create a new channel: Create a new Text/Voice channel (public or private)

Channel settings

With Manage Channel Permissions

  1. Mark As Read
  2. Invite people
  3. Mute Thread
  4. Notification Settings
  5. Edit Channel
  6. Create Channel
  7. Delete Channel

    Without Mange Channel Permissions:

  8. Mask As Read
  9. Invite People
  10. Copy Link
  11. Mute Channel
  12. Notification Settings

V. Manage Thread Permission

With Manage Thread Permission

  1. Mark As Read
  2. Invite people
  3. Mute Thread
  4. Notification Settings
  5. Edit Thread
  6. Create Thread
  7. Delete Thread

    Without Manage Thread Permission

  8. Mark As Read
  9. Invite people
  10. Mute Thread
  11. Notification Settings

VI. Send Message Permission:

As a user with Send Message Permission, I should be able to send messages.

VII. Delete Message Permission

As a user with Delete Message Permission, I should be able to delete all messages in the clan

Notes

Check cancel Event

There are only four permissions to cancel an Event.

Creator Clan Owner Admin Manage Clan

Check Edit/Delete Role

There are 2 permissions Create/Edit/Delete Role

The Clan Owner has permission to Edit and Delete all Roles. Admin Permission only has the right to Delete roles he created. Admin has the right to Edit roles that another Admin created.

trucnguyen31 commented 2 months ago

Note: Only these permissions are ready for testing

  1. Manage Channel
  2. Manage Thread
  3. Send Message
  4. Delete Message