Skip to content

Fix #2480 Permission entry is disabled for current user .#2481

Merged
subashtiwari1010 merged 4 commits intoGeoNode:masterfrom
anup39:fix_permission_disable_2480
Apr 1, 2026
Merged

Fix #2480 Permission entry is disabled for current user .#2481
subashtiwari1010 merged 4 commits intoGeoNode:masterfrom
anup39:fix_permission_disable_2480

Conversation

@anup39
Copy link
Copy Markdown
Member

@anup39 anup39 commented Mar 31, 2026

This PR add following :

  1. The permissions settings (geo, delete and selection) must be disabled if the user is the current user.
  2. Relevant test cases are added.
permission_test.mp4

… update the submodule for related changes
@anup39 anup39 added the enhancement New feature or request label Mar 31, 2026
@anup39 anup39 added this to the 5.1.0 milestone Mar 31, 2026
@anup39 anup39 linked an issue Mar 31, 2026 that may be closed by this pull request
@anup39 anup39 requested a review from allyoucanmap March 31, 2026 11:55
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the MapStore2 subproject and introduces logic to disable permission settings for the current user within the resource sharing interface. Changes include passing the current user object through the component hierarchy, updating the permissionsCompactToLists utility to determine a disabled state, and adding corresponding unit tests. Review feedback suggests refining the disabling logic in ResourceUtils.js to ensure it applies to all permission levels for the current user and includes a safety check for the user ID, alongside a minor formatting correction in GeoLimits.jsx.

@allyoucanmap allyoucanmap requested review from subashtiwari1010 and removed request for allyoucanmap March 31, 2026 12:10
@anup39 anup39 changed the title Fix #2480 Permission entry is disabled for current user , also update… Fix #2480 Permission entry is disabled for current user . Mar 31, 2026
@subashtiwari1010
Copy link
Copy Markdown

@anup39 please fix the merge conflict.

@anup39
Copy link
Copy Markdown
Member Author

anup39 commented Apr 1, 2026

@subashtiwari1010 okay

@anup39
Copy link
Copy Markdown
Member Author

anup39 commented Apr 1, 2026

@anup39 please fix the merge conflict.

Done.

@subashtiwari1010 subashtiwari1010 merged commit f1fa130 into GeoNode:master Apr 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Users shouldn't be allowed to change their own permissions.

3 participants