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

User should unable to delete item when this user don't have permission for update properties the item #2954

Open
Tristina1788 opened this issue May 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Tristina1788
Copy link
Collaborator

Tristina1788 commented May 23, 2024

🐞 Bug description

User should unable to delete item when this user don't have permission for update properties the item

🔢 Steps to Reproduce

  1. Play game 'TestHat' with role Blue - Co1
  2. Draw a new item on CoreMapping Channel
  3. Logout game
  4. Play game 'TestHat' with role Red- Red2
  5. Notice user Red2 can't update the item (on step2)
  6. Selete 'Delete' icon on right tool to delete the item
  7. Notice the item can be deleted

Note : Current permission on Red

const redParticipant: ParticipantMapping = {
  forceUniqid: 'f-red',
  roles: [],
  subscriptionId: 'aaaa',
  forRenderer: [coreRenderer.id, milSymRenderer.id],
  phases: [Phase.Planning, Phase.Adjudication],
  pType: PARTICIPANT_MAPPING,
  permissionTo: {
    'f-red': [MappingPermissions.ViewSpatial, MappingPermissions.MoveResize, MappingPermissions.AddRemove, 
      MappingPermissions.ViewProps, MappingPermissions.EditOwnProps],
    'f-blue': [MappingPermissions.ViewSpatial] 
  } 
}

⚙️ Expected behavior

User should unable to delete item when this user don't have permission for update properties the item

🖥️ Screencast

cannot-edit-but-can-delete.mp4

💻 System information

  • Browser : Chrome

📝 Additional context

@Tristina1788 Tristina1788 added the bug Something isn't working label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants