Skip to content

Commit

Permalink
Merge pull request #5071 from bastianbeier/fix/role-conversion
Browse files Browse the repository at this point in the history
Fix role conversion
  • Loading branch information
2403905 authored Feb 5, 2025
2 parents f046425 + 1b81709 commit 2a7145a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-role-conversion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Role conversion

Fix role from resource permission conversion

https://github.com/cs3org/reva/pull/5071
2 changes: 1 addition & 1 deletion pkg/conversions/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ func RoleFromResourcePermissions(rp *provider.ResourcePermissions, islink bool)
if rp.ListGrants {
r.Name = RoleEditorListGrants
}
if rp.RemoveGrant && rp.ListFileVersions {
if rp.ListGrants && rp.ListFileVersions {
r.Name = RoleEditorListGrantsWithVersions
}
if rp.RemoveGrant {
Expand Down

0 comments on commit 2a7145a

Please sign in to comment.