Skip to content

Commit 2a7145a

Browse files
authored
Merge pull request #5071 from bastianbeier/fix/role-conversion
Fix role conversion
2 parents f046425 + 1b81709 commit 2a7145a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Bugfix: Role conversion
2+
3+
Fix role from resource permission conversion
4+
5+
https://github.com/cs3org/reva/pull/5071

pkg/conversions/role.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ func RoleFromResourcePermissions(rp *provider.ResourcePermissions, islink bool)
617617
if rp.ListGrants {
618618
r.Name = RoleEditorListGrants
619619
}
620-
if rp.RemoveGrant && rp.ListFileVersions {
620+
if rp.ListGrants && rp.ListFileVersions {
621621
r.Name = RoleEditorListGrantsWithVersions
622622
}
623623
if rp.RemoveGrant {

0 commit comments

Comments
 (0)