Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar committed Apr 4, 2023
1 parent 15aba64 commit 4209846
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/http/services/owncloud/ocs/conversions/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ func NewLegacyRoleFromOCSPermissions(p Permissions) *Role {
if p.Contain(PermissionRead) {
r.cS3ResourcePermissions.ListContainer = true
// r.cS3ResourcePermissions.ListGrants = true
// r.cS3ResourcePermissions.ListFileVersions = true
r.cS3ResourcePermissions.ListRecycle = true
r.cS3ResourcePermissions.Stat = true
r.cS3ResourcePermissions.GetPath = true
Expand All @@ -377,7 +376,6 @@ func NewLegacyRoleFromOCSPermissions(p Permissions) *Role {
}
if p.Contain(PermissionWrite) {
r.cS3ResourcePermissions.InitiateFileUpload = true
// r.cS3ResourcePermissions.RestoreFileVersion = true
r.cS3ResourcePermissions.RestoreRecycleItem = true
}
if p.Contain(PermissionCreate) {
Expand Down Expand Up @@ -423,7 +421,6 @@ func RoleFromResourcePermissions(rp *provider.ResourcePermissions, islink bool)
return r
}
if rp.ListContainer &&
// rp.ListFileVersions &&
rp.ListRecycle &&
rp.Stat &&
rp.GetPath &&
Expand All @@ -432,7 +429,6 @@ func RoleFromResourcePermissions(rp *provider.ResourcePermissions, islink bool)
r.ocsPermissions |= PermissionRead
}
if rp.InitiateFileUpload &&
// rp.RestoreFileVersion &&
rp.RestoreRecycleItem {
r.ocsPermissions |= PermissionWrite
}
Expand Down

0 comments on commit 4209846

Please sign in to comment.