-
Notifications
You must be signed in to change notification settings - Fork 7
Framework for User Permissions & Roles #693
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
a0ed1f3
Django guardian setup
mohamedelabbas1996 bbd7faa
feat: added object level permissions for Project
mohamedelabbas1996 bcb2eeb
feat: added object level permissions management to the admin page
mohamedelabbas1996 aab6000
feat: added signals to auto-assign permissions when a project is crea…
mohamedelabbas1996 8bb1ac3
Added tests for user permissions
mohamedelabbas1996 38addf3
cleanup: removed logs
mohamedelabbas1996 d85b88e
feat: Enforce project_id for project entities & inherit project permi…
mohamedelabbas1996 3e4f1d8
feat: added roles
mohamedelabbas1996 ac83301
feat: added custom permission checks
mohamedelabbas1996 080315b
cleanup: refactored ObjectPermissions to ProjectCRUDPermissions
mohamedelabbas1996 82f49fc
fix: made project_id param optional
mohamedelabbas1996 31ff972
feat: added project entities CRUD permissions
mohamedelabbas1996 1338032
Added tests for basic member and identifier roles
mohamedelabbas1996 a2a4b67
cleanup: squashed migrations
mohamedelabbas1996 04e58ed
fix: added CanDeleteIdentification permission to Identifier role
mohamedelabbas1996 6836bd2
fix: Allow only the user who created an Identification to delete it
mohamedelabbas1996 01d0c84
fix: Allow Project Manager to delete all Identifications in the project
mohamedelabbas1996 bddb311
fix: Auto-create roles when a project is created
mohamedelabbas1996 c28394e
fix: Prevent Project Manager from creating a project
mohamedelabbas1996 853ecb9
stub out solution for permissions per-collection type
mihow 9a5d12f
Merge branch 'main' into feat/user-permissions
mohamedelabbas1996 bf7b091
fix: Resolved merge conflict
mohamedelabbas1996 3c4ec72
fix: resovled merge conflict
mohamedelabbas1996 670fb5f
fix: check permissions before creating an object
mohamedelabbas1996 3724e5f
feat: Add identifier and source image collection permissions
mohamedelabbas1996 0bb0783
fix: Ensure identifier permissions are reflected on the frontend
mohamedelabbas1996 39ec6cf
cleanup: Removed TODOs
mohamedelabbas1996 8458f95
fix: renamed storage permission
mohamedelabbas1996 eccca1f
fix: update frontend logic for entity delete permissions
annavik 5e07ab4
fix: added create permission to the user permissions field at the col…
mohamedelabbas1996 a5003a6
Merge branch 'feat/user-permissions' of https://github.com/RolnickLab…
mohamedelabbas1996 8fd64a8
fix: Fixed Identifier role tests
mohamedelabbas1996 2178095
fix: Resolved migration conflict
mohamedelabbas1996 a10041f
fix: added algorithm (name,version) unique constraint
mohamedelabbas1996 b25fa77
fix: removed permissions for machine suggestions
mohamedelabbas1996 e32b9dd
fix: auto-assign BasicMember and ProjectManager roles for all projects
mohamedelabbas1996 2a8f326
fix: get the queryset for project members
mohamedelabbas1996 bdba187
Merge branch 'main' into feat/user-permissions
mohamedelabbas1996 ee03ed1
merged migrations
mohamedelabbas1996 964711c
fix: only run create roles once after migrations are completed
mihow 3db5224
feat: added assign_identifiers & assign_roles management commands
mohamedelabbas1996 11169bd
Merge branch 'feat/user-permissions' of https://github.com/RolnickLab…
mohamedelabbas1996 b604345
Merge branch 'main' into feat/user-permissions
mohamedelabbas1996 79a18ce
fix: first, reset all permissions for non-superusers in the assign_ro…
mohamedelabbas1996 1f8978f
Merge branch 'feat/user-permissions' of https://github.com/RolnickLab…
mohamedelabbas1996 7a94767
added merge migration
mohamedelabbas1996 54f70fc
chore: modified doc string
mohamedelabbas1996 7651004
fix: added frontend permisssion checks for star and populate actions
mohamedelabbas1996 b1c8725
fix: adjust star button tooltip based on permissions status
annavik 351f079
style: add gap to identification card action buttons when more than o…
annavik 1bdba18
fix: modify create permission check to fall back to object permissions
mohamedelabbas1996 a45d52c
Merge branch 'feat/user-permissions' of https://github.com/RolnickLab…
mohamedelabbas1996 c3bca51
test: added tests to make sure that project manager can CRUD project …
mohamedelabbas1996 1ae6152
feat: refine permissions and role-based access control
mohamedelabbas1996 577731e
added migration file
mohamedelabbas1996 55a6dfc
fix: handle underscores in project name
mohamedelabbas1996 8300905
fix: only show button "Register pipelines" if user is allowed to crea…
annavik 1324fa6
fix: mark prop as optional
annavik b7e6d42
style: format code
annavik a5d06e0
fix: Extract role name after the last underscore and check if the gro…
mohamedelabbas1996 6ae6995
fix: Extract role name after the last underscore and check if the gro…
mohamedelabbas1996 cfb88a1
Merge branch 'feat/user-permissions' of https://github.com/RolnickLab…
mohamedelabbas1996 19bc51f
feat: update FE to use custom permissions for jobs
annavik 34f8fcf
fix: removed project update permission from basic member role
mohamedelabbas1996 73abb4b
fix: removed project update permission from basic member role
mohamedelabbas1996 6412eba
fix: removed project update permission from basic member role
mohamedelabbas1996 ff17595
fix: removed project update permission from basic member role
mohamedelabbas1996 bceab0a
fix: removed project update permission from basic member role
mohamedelabbas1996 3b7579b
Merge branch 'main' into feat/user-permissions
mohamedelabbas1996 1d75e9d
cleanup: merged assign_roles & assign_identifiers management commands
mohamedelabbas1996 44ce97a
Merge branch 'feat/user-permissions' of https://github.com/RolnickLab…
mohamedelabbas1996 02d9795
fix: show projects in My projetcs based on roles assigned to user
mohamedelabbas1996 e1c3e17
fix: show projects in My projetcs based on roles assigned to user
mohamedelabbas1996 b1ba917
fix: Add user to project members when they got assigned a role
mohamedelabbas1996 963a33b
chore: standardize the generation of the permission group name
mihow 0d67332
chore: Added TODOs for tracking permission group names used to link p…
mohamedelabbas1996 57e8911
Merge branch 'main' of github.com:RolnickLab/antenna into feat/user-p…
mihow c7ae632
chore: add type annotation
mihow 0a83d4e
feat: reduce logs & make log level configurable locally
mihow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you keep track of any function that is using the group name to relate to projects? So we can refactor at the same time