Repository navigation
graph: Set roles/actions in sharedByMe response - #7703
Merged
Merged
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
rhafer
commented
Nov 9, 2023
1 of 9 tasks
rhafer
force-pushed
the
graph-sharedbyme
branch
2 times, most recently
from
November 14, 2023 10:56
d8da8df to
3f797fc
Compare
rhafer
marked this pull request as ready for review
November 14, 2023 11:01
rhafer
force-pushed
the
graph-sharedbyme
branch
from
November 14, 2023 11:05
3f797fc to
3e957d7
Compare
Contributor
Author
|
There is still a issue that cause the |
rhafer
force-pushed
the
graph-sharedbyme
branch
2 times, most recently
from
November 14, 2023 11:34
33f5d91 to
a1f7d14
Compare
2403905
reviewed
Nov 14, 2023
2403905
approved these changes
Nov 15, 2023
Add function to convert CS3ResourcePermsissions to libregraph actions
The "Self/Owner/Grantee" string are not part the the constraint value
rename it to GetBuiltinRoleDefinitionList and make it public
Try to map CS3 resource permissions on a share to one of the default libregraph UnifiedRoleDefinitions. If a match if found return the roleid in 'permissions.roles' attribute of the response. If no match if found convert the ResourcePermissions in to `libre.graph.permissions.actions` and return those in the response.
rhafer
force-pushed
the
graph-sharedbyme
branch
from
November 17, 2023 08:35
a1f7d14 to
a62c92f
Compare
Contributor
Author
|
rebased |
|
Kudos, SonarCloud Quality Gate passed! |
ownclouders
pushed a commit
that referenced
this pull request
Nov 17, 2023
* unifiedrole: Add CS3ResourcePermissionsToLibregraphActions Add function to convert CS3ResourcePermsissions to libregraph actions * unifiedrole: Fix strings for the UnifiedRoleConditionSelf The "Self/Owner/Grantee" string are not part the the constraint value * graph: Move getRoleDefinitionList to unifiedrole module rename it to GetBuiltinRoleDefinitionList and make it public * graph: turn libregraph resource actions into string constants * graph/sharedbyme: Set the correct roles (or actions) on permissions Try to map CS3 resource permissions on a share to one of the default libregraph UnifiedRoleDefinitions. If a match if found return the roleid in 'permissions.roles' attribute of the response. If no match if found convert the ResourcePermissions in to `libre.graph.permissions.actions` and return those in the response.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.








Try to map CS3 resource permissions on a share to one of the default libregraph
UnifiedRoleDefinitions. If a match if found return the roleid in 'permissions.roles'
attribute of the response. If no match if found convert the
ResourcePermissions in to
libre.graph.permissions.actionsand returnthose in the response.