Merge pull request #11898 from kobergj/FixSharingRoles
[OCISDEV-569] Fix Sharing-Roles
This commit is contained in:
9 files changed
+366
-341
No files matched your search
+2
-2
@@ -1,3 +1,3 @@
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=fa082b721d8ef0186e25fd5cd8c6bbb7a097f567
|
||||
WEB_BRANCH=stable-12.2
|
||||
WEB_COMMITID=d3b0b0c216f26d6c40a02469481f807e1f4fd63e
|
||||
WEB_BRANCH=FixTestSharingRoles
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix Sharingroles
|
||||
|
||||
Sharing roles were inconsistent, now they are fixed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11898
|
||||
@@ -97,101 +97,141 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
// UnifiedRole Viewer, Role Description (resolves directly)
|
||||
_viewerUnifiedRoleDescription = l10n.Template("View and download.")
|
||||
|
||||
// UnifiedRole Viewer, Role DisplayName (resolves directly)
|
||||
_viewerUnifiedRoleDisplayName = l10n.Template("Can view")
|
||||
|
||||
// UnifiedRole ViewerListGrants, Role Description (resolves directly)
|
||||
_viewerListGrantsUnifiedRoleDescription = l10n.Template("View, download and show all invited people.")
|
||||
|
||||
// UnifiedRole ViewerListGrants, Role DisplayName (resolves directly)
|
||||
_viewerListGrantsUnifiedRoleDisplayName = l10n.Template("Can view")
|
||||
|
||||
// UnifiedRole SpaceViewer, Role Description (resolves directly)
|
||||
_spaceViewerUnifiedRoleDescription = l10n.Template("View and download.")
|
||||
|
||||
// UnifiedRole SpaseViewer, Role DisplayName (resolves directly)
|
||||
_spaceViewerUnifiedRoleDisplayName = l10n.Template("Can view")
|
||||
|
||||
// UnifiedRole Editor, Role Description (resolves directly)
|
||||
_editorUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add and delete.")
|
||||
|
||||
// UnifiedRole Editor, Role DisplayName (resolves directly)
|
||||
_editorUnifiedRoleDisplayName = l10n.Template("Can edit without versions")
|
||||
|
||||
// UnifiedRole EditorListGrants Editor, Role Description (resolves directly)
|
||||
_editorListGrantsUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add, delete and show all invited people.")
|
||||
|
||||
// UnifiedRole EditorListGrants, Role DisplayName (resolves directly)
|
||||
_editorListGrantsUnifiedRoleDisplayName = l10n.Template("Can edit without versions")
|
||||
|
||||
// UnifiedRole EditorListGrantsWithVersions, Role Description (resolves directly)
|
||||
_editorListGrantsWithVersionsUnifiedRoleDescription = l10n.Template("View, download, upload, edit, delete and show all invited people, show all versions.")
|
||||
|
||||
// UnifiedRole EditorListGrantsWithVersions, Role DisplayName (resolves directly)
|
||||
_editorListGrantsWithVersionsUnifiedRoleDisplayName = l10n.Template("Can edit")
|
||||
|
||||
// UnifiedRole SpaseEditor, Role Description (resolves directly)
|
||||
_spaceEditorUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add, delete including the history.")
|
||||
|
||||
// UnifiedRole SpaseEditor, Role DisplayName (resolves directly)
|
||||
_spaceEditorUnifiedRoleDisplayName = l10n.Template("Can edit")
|
||||
|
||||
// UnifiedRole SpaseEditorWithoutVersions, Role Description (resolves directly)
|
||||
_spaceEditorWithoutVersionsUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add and delete.")
|
||||
|
||||
// UnifiedRole SpaseEditorWithoutVersions, Role DisplayName (resolves directly)
|
||||
_spaceEditorWithoutVersionsUnifiedRoleDisplayName = l10n.Template("Can edit without versions")
|
||||
|
||||
// UnifiedRole SpaceEditorWithoutTrashbin, Role DisplayName (resolves directly)
|
||||
_spaceEditorWithoutTrashbinUnifiedRoleDisplayName = l10n.Template("Can edit without trashbin")
|
||||
|
||||
// UnifiedRole SpaceEditorWithoutTrashbin, Role Description (resolves directly)
|
||||
_spaceEditorWithoutTrashbinUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add and delete.")
|
||||
|
||||
// UnifiedRole FileEditor, Role Description (resolves directly)
|
||||
_fileEditorUnifiedRoleDescription = l10n.Template("View, download and edit.")
|
||||
|
||||
// UnifiedRole FileEditor, Role DisplayName (resolves directly)
|
||||
_fileEditorUnifiedRoleDisplayName = l10n.Template("Can edit without versions")
|
||||
|
||||
// UnifiedRole FileEditorListGrants, Role Description (resolves directly)
|
||||
_fileEditorListGrantsUnifiedRoleDescription = l10n.Template("View, download, edit and show all invited people.")
|
||||
|
||||
// UnifiedRole FileEditorListGrants, Role DisplayName (resolves directly)
|
||||
_fileEditorListGrantsUnifiedRoleDisplayName = l10n.Template("Can edit without versions")
|
||||
|
||||
// UnifiedRole FileEditorListGrants, Role Description (resolves directly)
|
||||
_fileEditorListGrantsWithVersionsUnifiedRoleDescription = l10n.Template("View, download, edit and show all invited people, show all versions.")
|
||||
|
||||
// UnifiedRole FileEditorListGrants, Role DisplayName (resolves directly)
|
||||
_fileEditorListGrantsWithVersionsUnifiedRoleDisplayName = l10n.Template("Can edit")
|
||||
|
||||
// UnifiedRole EditorLite, Role Description (resolves directly)
|
||||
_editorLiteUnifiedRoleDescription = l10n.Template("View, download and upload.")
|
||||
|
||||
// UnifiedRole EditorLite, Role DisplayName (resolves directly)
|
||||
_editorLiteUnifiedRoleDisplayName = l10n.Template("Can upload")
|
||||
|
||||
// UnifiedRole Manager, Role Description (resolves directly)
|
||||
_managerUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add, delete and manage members.")
|
||||
|
||||
// UnifiedRole Manager, Role DisplayName (resolves directly)
|
||||
_managerUnifiedRoleDisplayName = l10n.Template("Can manage")
|
||||
|
||||
// UnifiedRole SecureViewer, Role Description (resolves directly)
|
||||
_secureViewerUnifiedRoleDescription = l10n.Template("View only documents, images and PDFs. Watermarks will be applied.")
|
||||
// Sharing Viewer (Files + Folders)
|
||||
|
||||
// SecureViewer
|
||||
// UnifiedRole SecureViewer, Role DisplayName (resolves directly)
|
||||
_secureViewerUnifiedRoleDisplayName = l10n.Template("Can view (secure)")
|
||||
// UnifiedRole SecureViewer, Role Description (resolves directly)
|
||||
_secureViewerUnifiedRoleDescription = l10n.Template("View only documents, images and PDFs. Watermarks will be applied.")
|
||||
// UnifiedRole SecureViewer, Permissions
|
||||
_secureViewerRole = conversions.NewSecureViewerRole()
|
||||
|
||||
// UnifiedRole FullDenial, Role Description (resolves directly)
|
||||
_deniedUnifiedRoleDescription = l10n.Template("Deny all access.")
|
||||
// Viewer
|
||||
// UnifiedRole Viewer, Role DisplayName (resolves directly)
|
||||
_viewerUnifiedRoleDisplayName = l10n.Template("Can view")
|
||||
// UnifiedRole Viewer, Role Description (resolves directly)
|
||||
_viewerUnifiedRoleDescription = l10n.Template("View and download.")
|
||||
// UnifiedRole Viewer, Permissions
|
||||
_viewerRole = conversions.NewViewerRole()
|
||||
|
||||
// Viewer + ListGrants
|
||||
// UnifiedRole ViewerListGrants, Role DisplayName (resolves directly)
|
||||
_viewerListGrantsUnifiedRoleDisplayName = l10n.Template("Can view and show invitees")
|
||||
// UnifiedRole ViewerListGrants, Role Description (resolves directly)
|
||||
_viewerListGrantsUnifiedRoleDescription = l10n.Template("View, download and show all invited people.")
|
||||
// UnifiedRole ViewerListGrants, PermissionsReference
|
||||
_viewerListGrantsRole = conversions.NewViewerListGrantsRole()
|
||||
|
||||
// Sharing Folder
|
||||
|
||||
// Denial
|
||||
// UnifiedRole FullDenial, Role DisplayName (resolves directly)
|
||||
_deniedUnifiedRoleDisplayName = l10n.Template("Cannot access")
|
||||
// UnifiedRole FullDenial, Role Description (resolves directly)
|
||||
_deniedUnifiedRoleDescription = l10n.Template("Deny all access.")
|
||||
// UnifiedRole FullDenial, Permissions
|
||||
_deniedRole = conversions.NewDeniedRole()
|
||||
|
||||
// EditorLite
|
||||
// UnifiedRole EditorLite, Role DisplayName (resolves directly)
|
||||
_editorLiteUnifiedRoleDisplayName = l10n.Template("Can edit")
|
||||
// UnifiedRole EditorLite, Role Description (resolves directly)
|
||||
_editorLiteUnifiedRoleDescription = l10n.Template("View, download, upload, edit and add.")
|
||||
// UnifiedRole EditorLite, Permissions
|
||||
_editorLiteRole = conversions.NewEditorLiteRole()
|
||||
|
||||
// Editor
|
||||
// UnifiedRole Editor, Role DisplayName (resolves directly)
|
||||
_editorUnifiedRoleDisplayName = l10n.Template("Can edit with trashbin")
|
||||
// UnifiedRole Editor, Role Description (resolves directly)
|
||||
_editorUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add and delete.")
|
||||
// UnifiedRole Editor, Permissions
|
||||
_editorRole = conversions.NewEditorRole()
|
||||
|
||||
// Editor + ListGrants
|
||||
// UnifiedRole EditorListGrants, Role DisplayName (resolves directly)
|
||||
_editorListGrantsUnifiedRoleDisplayName = l10n.Template("Can edit with trashbin and show invitees")
|
||||
// UnifiedRole EditorListGrants Editor, Role Description (resolves directly)
|
||||
_editorListGrantsUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add, delete and show all invited people.")
|
||||
// UnifiedRole EditorListGrants Editor, Permissions
|
||||
_editorListGrantsRole = conversions.NewEditorListGrantsRole()
|
||||
|
||||
// Editor + ListGrants + Version
|
||||
// UnifiedRole EditorListGrantsWithVersions, Role DisplayName (resolves directly)
|
||||
_editorListGrantsWithVersionsUnifiedRoleDisplayName = l10n.Template("Can edit with trashbin, versions and show invitees")
|
||||
// UnifiedRole EditorListGrantsWithVersions, Role Description (resolves directly)
|
||||
_editorListGrantsWithVersionsUnifiedRoleDescription = l10n.Template("View, download, upload, edit, delete, show all versions and all invited people.")
|
||||
// UnifiedRole EditorListGrantsWithVersions, Permissions
|
||||
_editorListGrantsWithVersionsRole = conversions.NewEditorListGrantsWithVersionsRole()
|
||||
|
||||
// Sharing File
|
||||
|
||||
// FileEditor
|
||||
// UnifiedRole FileEditor, Role DisplayName (resolves directly)
|
||||
_fileEditorUnifiedRoleDisplayName = l10n.Template("Can edit")
|
||||
// UnifiedRole FileEditor, Role Description (resolves directly)
|
||||
_fileEditorUnifiedRoleDescription = l10n.Template("View, download, upload and edit.")
|
||||
// UnifiedRole FileEditor, Permissions
|
||||
_fileEditorRole = conversions.NewFileEditorRole()
|
||||
|
||||
// FileEditor + ListGrants
|
||||
// UnifiedRole FileEditorListGrants, Role DisplayName (resolves directly)
|
||||
_fileEditorListGrantsUnifiedRoleDisplayName = l10n.Template("Can edit and show invitees")
|
||||
// UnifiedRole FileEditorListGrants, Role Description (resolves directly)
|
||||
_fileEditorListGrantsUnifiedRoleDescription = l10n.Template("View, download, upload, edit and show all invited people.")
|
||||
// UnifiedRole FileEditorListGrants, Permissions
|
||||
_fileEditorListGrantsRole = conversions.NewFileEditorListGrantsRole()
|
||||
|
||||
// FileEditor + ListGrants + Versions
|
||||
// UnifiedRole FileEditorListGrantsWithVersions, Role DisplayName (resolves directly)
|
||||
_fileEditorListGrantsWithVersionsUnifiedRoleDisplayName = l10n.Template("Can edit with versions and show invitees")
|
||||
// UnifiedRole FileEditorListGrantsWithVersions, Role Description (resolves directly)
|
||||
_fileEditorListGrantsWithVersionsUnifiedRoleDescription = l10n.Template("View, download, upload, edit, show all versions and all invited people.")
|
||||
// UnifiedRole FileEditorListGrantsWithVersion, Role Permissions
|
||||
_fileEditorListGrantsWithVersionsRole = conversions.NewFileEditorListGrantsWithVersionsRole()
|
||||
|
||||
// Space Membership
|
||||
|
||||
// Viewer
|
||||
// UnifiedRole SpaceViewer, Role DisplayName (resolves directly)
|
||||
_spaceViewerUnifiedRoleDisplayName = l10n.Template("Can view")
|
||||
// UnifiedRole SpaceViewer, Role Description (resolves directly)
|
||||
_spaceViewerUnifiedRoleDescription = l10n.Template("View and download.")
|
||||
// UnifiedRole SpaceViewer, Permissions
|
||||
_spaceViewerRole = conversions.NewSpaceViewerRole()
|
||||
|
||||
// Editor without Versions
|
||||
// UnifiedRole SpaceEditorWithoutVersions, Role DisplayName (resolves directly)
|
||||
_spaceEditorWithoutVersionsUnifiedRoleDisplayName = l10n.Template("Can edit")
|
||||
// UnifiedRole SpaceEditorWithoutVersions, Role Description (resolves directly)
|
||||
_spaceEditorWithoutVersionsUnifiedRoleDescription = l10n.Template("View, download, upload, edit and add.")
|
||||
// UnifiedRole SpaceEditorWithoutVersions, Permissions
|
||||
_spaceEditorWithoutVersionsRole = conversions.NewSpaceEditorWithoutVersionsRole()
|
||||
|
||||
// Editor without Trashbin
|
||||
// UnifiedRole SpaceEditorWithoutTrashbin, Role DisplayName (resolves directly)
|
||||
_spaceEditorWithoutTrashbinUnifiedRoleDisplayName = l10n.Template("Can edit with versions")
|
||||
// UnifiedRole SpaceEditorWithoutTrashbin, Role Description (resolves directly)
|
||||
_spaceEditorWithoutTrashbinUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add and show all versions.")
|
||||
// UnifiedRole SpaceEditorWithoutTrashbin, Permissions
|
||||
_spaceEditorWithoutTrashbinRole = conversions.NewSpaceEditorWithoutTrashbinRole()
|
||||
|
||||
// Editor
|
||||
// UnifiedRole SpaceEditor, Role DisplayName (resolves directly)
|
||||
_spaceEditorUnifiedRoleDisplayName = l10n.Template("Can edit with versions and trashbin")
|
||||
// UnifiedRole SpaceEditor, Role Description (resolves directly)
|
||||
_spaceEditorUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add, show all versions and delete.")
|
||||
// UnifiedRole SpaceEditor, Permissions
|
||||
_spaceEditorRole = conversions.NewSpaceEditorRole()
|
||||
|
||||
// Manager
|
||||
// UnifiedRole Manager, Role DisplayName (resolves directly)
|
||||
_managerUnifiedRoleDisplayName = l10n.Template("Can manage")
|
||||
// UnifiedRole Manager, Role Description (resolves directly)
|
||||
_managerUnifiedRoleDescription = l10n.Template("View, download, upload, edit, add, show all versions, delete and manage members.")
|
||||
// UnifiedRole Manager, Permissions
|
||||
_managerRole = conversions.NewManagerRole()
|
||||
|
||||
// unifiedRoleLabel contains the mapping of unified role IDs to their labels.
|
||||
unifiedRoleLabel = map[string]string{
|
||||
@@ -228,28 +268,46 @@ var (
|
||||
UnifiedRoleSecureViewerID: conversions.RoleSecureViewer,
|
||||
}
|
||||
|
||||
// roleViewer creates a viewer role.
|
||||
roleViewer = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewViewerRole()
|
||||
// roleSecureViewer creates a secure viewer role
|
||||
roleSecureViewer = func() *libregraph.UnifiedRoleDefinition {
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleViewerID),
|
||||
Description: proto.String(_viewerUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
Id: proto.String(UnifiedRoleSecureViewerID),
|
||||
DisplayName: proto.String(_secureViewerUnifiedRoleDisplayName),
|
||||
Description: proto.String(_secureViewerUnifiedRoleDescription),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_secureViewerRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFile),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_secureViewerRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolder),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
}
|
||||
}
|
||||
// roleViewer creates a viewer role.
|
||||
roleViewer = func() *libregraph.UnifiedRoleDefinition {
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleViewerID),
|
||||
DisplayName: proto.String(_viewerUnifiedRoleDisplayName),
|
||||
Description: proto.String(_viewerUnifiedRoleDescription),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_viewerRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFile),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_viewerRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolder),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_viewerRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFileFederatedUser),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_viewerRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolderFederatedUser),
|
||||
},
|
||||
},
|
||||
@@ -259,26 +317,25 @@ var (
|
||||
|
||||
// roleViewerListGrants creates a viewer role.
|
||||
roleViewerListGrants = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewViewerListGrantsRole()
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleViewerListGrantsID),
|
||||
DisplayName: proto.String(_viewerListGrantsUnifiedRoleDisplayName),
|
||||
Description: proto.String(_viewerListGrantsUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_viewerListGrantsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFile),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_viewerListGrantsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolder),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_viewerListGrantsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFileFederatedUser),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_viewerListGrantsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolderFederatedUser),
|
||||
},
|
||||
},
|
||||
@@ -286,17 +343,32 @@ var (
|
||||
}
|
||||
}
|
||||
|
||||
// roleSpaceViewer creates a spaceviewer role
|
||||
roleSpaceViewer = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewSpaceViewerRole()
|
||||
// roleDenied creates a secure viewer role
|
||||
roleDenied = func() *libregraph.UnifiedRoleDefinition {
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleSpaceViewerID),
|
||||
Description: proto.String(_spaceViewerUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
Id: proto.String(UnifiedRoleDeniedID),
|
||||
DisplayName: proto.String(_deniedUnifiedRoleDisplayName),
|
||||
Description: proto.String(_deniedUnifiedRoleDescription),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionDrive),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_deniedRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolder),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
}
|
||||
}
|
||||
|
||||
// roleEditorLite creates an editor-lite role
|
||||
roleEditorLite = func() *libregraph.UnifiedRoleDefinition {
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleEditorLiteID),
|
||||
DisplayName: proto.String(_editorLiteUnifiedRoleDisplayName),
|
||||
Description: proto.String(_editorLiteUnifiedRoleDescription),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_editorLiteRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolder),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
@@ -305,18 +377,17 @@ var (
|
||||
|
||||
// roleEditor creates an editor role.
|
||||
roleEditor = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewEditorRole()
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleEditorID),
|
||||
DisplayName: proto.String(_editorUnifiedRoleDisplayName),
|
||||
Description: proto.String(_editorUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_editorRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolder),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_editorRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolderFederatedUser),
|
||||
},
|
||||
},
|
||||
@@ -326,18 +397,17 @@ var (
|
||||
|
||||
// roleEditorListGrants creates an editor role.
|
||||
roleEditorListGrants = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewEditorListGrantsRole()
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleEditorListGrantsID),
|
||||
DisplayName: proto.String(_editorListGrantsUnifiedRoleDisplayName),
|
||||
Description: proto.String(_editorListGrantsUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_editorListGrantsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolder),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_editorListGrantsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolderFederatedUser),
|
||||
},
|
||||
},
|
||||
@@ -347,20 +417,17 @@ var (
|
||||
|
||||
// roleEditorListGrantsWithVersions creates an editor-list-grants-with-versions role.
|
||||
roleEditorListGrantsWithVersions = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewEditorListGrantsWithVersionsRole()
|
||||
// TODO: Workaround to avoid reva bump - fix in reva
|
||||
r.Name = conversions.RoleEditorListGrantsWithVersions
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleEditorListGrantsWithVersionsID),
|
||||
DisplayName: proto.String(_editorListGrantsWithVersionsUnifiedRoleDisplayName),
|
||||
Description: proto.String(_editorListGrantsWithVersionsUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_editorListGrantsWithVersionsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolder),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_editorListGrantsWithVersionsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolderFederatedUser),
|
||||
},
|
||||
},
|
||||
@@ -368,70 +435,19 @@ var (
|
||||
}
|
||||
}
|
||||
|
||||
// roleSpaceEditor creates an editor role
|
||||
roleSpaceEditor = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewSpaceEditorRole()
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleSpaceEditorID),
|
||||
Description: proto.String(_spaceEditorUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionDrive),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
}
|
||||
}
|
||||
|
||||
// roleSpaceEditorWithoutVersions creates an editor without versions role
|
||||
roleSpaceEditorWithoutVersions = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewSpaceEditorWithoutVersionsRole()
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleSpaceEditorWithoutVersionsID),
|
||||
Description: proto.String(_spaceEditorWithoutVersionsUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionDrive),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
}
|
||||
}
|
||||
|
||||
roleSpaceEditorWithoutTrashbin = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewSpaceEditorWithoutTrashbinRole()
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleSpaceEditorWithoutTrashbinID),
|
||||
Description: proto.String(_spaceEditorWithoutTrashbinUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionDrive),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
}
|
||||
}
|
||||
|
||||
// roleFileEditor creates a file-editor role
|
||||
roleFileEditor = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewFileEditorRole()
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleFileEditorID),
|
||||
DisplayName: proto.String(_fileEditorUnifiedRoleDisplayName),
|
||||
Description: proto.String(_fileEditorUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_fileEditorRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFile),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_fileEditorRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFileFederatedUser),
|
||||
},
|
||||
},
|
||||
@@ -441,18 +457,17 @@ var (
|
||||
|
||||
// roleFileEditorListGrants creates a file-editor role
|
||||
roleFileEditorListGrants = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewFileEditorListGrantsRole()
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleFileEditorListGrantsID),
|
||||
DisplayName: proto.String(_fileEditorListGrantsUnifiedRoleDisplayName),
|
||||
Description: proto.String(_fileEditorListGrantsUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_fileEditorListGrantsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFile),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_fileEditorListGrantsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFileFederatedUser),
|
||||
},
|
||||
},
|
||||
@@ -462,20 +477,17 @@ var (
|
||||
|
||||
// roleFileEditorListGrantsWithVersions creates a file-editor role
|
||||
roleFileEditorListGrantsWithVersions = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewFileEditorListGrantsWithVersionsRole()
|
||||
// TODO: Workaround to avoid reva bump - fix in reva
|
||||
r.Name = conversions.RoleFileEditorListGrantsWithVersions
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleFileEditorListGrantsWithVersionsID),
|
||||
DisplayName: proto.String(_fileEditorListGrantsWithVersionsUnifiedRoleDisplayName),
|
||||
Description: proto.String(_fileEditorListGrantsWithVersionsUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_fileEditorListGrantsWithVersionsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFile),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_fileEditorListGrantsWithVersionsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFileFederatedUser),
|
||||
},
|
||||
},
|
||||
@@ -483,17 +495,64 @@ var (
|
||||
}
|
||||
}
|
||||
|
||||
// roleEditorLite creates an editor-lite role
|
||||
roleEditorLite = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewEditorLiteRole()
|
||||
// roleSpaceViewer creates a spaceviewer role
|
||||
roleSpaceViewer = func() *libregraph.UnifiedRoleDefinition {
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleEditorLiteID),
|
||||
Description: proto.String(_editorLiteUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
Id: proto.String(UnifiedRoleSpaceViewerID),
|
||||
DisplayName: proto.String(_spaceViewerUnifiedRoleDisplayName),
|
||||
Description: proto.String(_spaceViewerUnifiedRoleDescription),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolder),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_spaceViewerRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionDrive),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
}
|
||||
}
|
||||
|
||||
// roleSpaceEditorWithoutTrashbin creates an editor without trashbin role
|
||||
roleSpaceEditorWithoutTrashbin = func() *libregraph.UnifiedRoleDefinition {
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleSpaceEditorWithoutTrashbinID),
|
||||
DisplayName: proto.String(_spaceEditorWithoutTrashbinUnifiedRoleDisplayName),
|
||||
Description: proto.String(_spaceEditorWithoutTrashbinUnifiedRoleDescription),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_spaceEditorWithoutTrashbinRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionDrive),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
}
|
||||
}
|
||||
|
||||
// roleSpaceEditorWithoutVersions creates an editor without versions role
|
||||
roleSpaceEditorWithoutVersions = func() *libregraph.UnifiedRoleDefinition {
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleSpaceEditorWithoutVersionsID),
|
||||
DisplayName: proto.String(_spaceEditorWithoutVersionsUnifiedRoleDisplayName),
|
||||
Description: proto.String(_spaceEditorWithoutVersionsUnifiedRoleDescription),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_spaceEditorWithoutVersionsRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionDrive),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
}
|
||||
}
|
||||
|
||||
// roleSpaceEditor creates an editor role
|
||||
roleSpaceEditor = func() *libregraph.UnifiedRoleDefinition {
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleSpaceEditorID),
|
||||
DisplayName: proto.String(_spaceEditorUnifiedRoleDisplayName),
|
||||
Description: proto.String(_spaceEditorUnifiedRoleDescription),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_spaceEditorRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionDrive),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
@@ -502,58 +561,19 @@ var (
|
||||
|
||||
// roleManager creates a manager role
|
||||
roleManager = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewManagerRole()
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleManagerID),
|
||||
DisplayName: proto.String(_managerUnifiedRoleDisplayName),
|
||||
Description: proto.String(_managerUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(_managerRole.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionDrive),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
}
|
||||
}
|
||||
|
||||
// roleSecureViewer creates a secure viewer role
|
||||
roleSecureViewer = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewSecureViewerRole()
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleSecureViewerID),
|
||||
Description: proto.String(_secureViewerUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFile),
|
||||
},
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolder),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
}
|
||||
}
|
||||
|
||||
// roleDenied creates a secure viewer role
|
||||
roleDenied = func() *libregraph.UnifiedRoleDefinition {
|
||||
r := conversions.NewDeniedRole()
|
||||
return &libregraph.UnifiedRoleDefinition{
|
||||
Id: proto.String(UnifiedRoleDeniedID),
|
||||
Description: proto.String(_deniedUnifiedRoleDescription),
|
||||
DisplayName: proto.String(cs3RoleToDisplayName(r)),
|
||||
RolePermissions: []libregraph.UnifiedRolePermission{
|
||||
{
|
||||
AllowedResourceActions: CS3ResourcePermissionsToLibregraphActions(r.CS3ResourcePermissions()),
|
||||
Condition: proto.String(UnifiedRoleConditionFolder),
|
||||
},
|
||||
},
|
||||
LibreGraphWeight: proto.Int32(0),
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
// GetRoles returns a role filter that matches the provided resources
|
||||
|
||||
@@ -211,7 +211,7 @@ Feature: permissions role definitions
|
||||
"const": "View, download, upload, edit, add and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "fb6c3e19-e378-47e5-b277-9732f9de6e21"
|
||||
@@ -296,10 +296,10 @@ Feature: permissions role definitions
|
||||
"const": 0
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete including the history."
|
||||
"const": "View, download, upload, edit, add, show all versions and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit"
|
||||
"const": "Can edit with versions and trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "58c63c02-1d89-4572-916a-870abc5a1b7d"
|
||||
@@ -356,10 +356,10 @@ Feature: permissions role definitions
|
||||
"const": 0
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and edit."
|
||||
"const": "View, download, upload and edit."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a"
|
||||
@@ -438,10 +438,10 @@ Feature: permissions role definitions
|
||||
"const": 0
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and upload."
|
||||
"const": "View, download, upload, edit and add."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can upload"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "1c996275-f1c9-4e71-abdf-a42f6495e960"
|
||||
@@ -491,7 +491,7 @@ Feature: permissions role definitions
|
||||
"const": 0
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete and manage members."
|
||||
"const": "View, download, upload, edit, add, show all versions, delete and manage members."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can manage"
|
||||
|
||||
+12
-12
@@ -214,8 +214,8 @@ Feature: an user shares resources
|
||||
"required": ["@libre.graph.weight", "description", "displayName", "id" ],
|
||||
"properties": {
|
||||
"@libre.graph.weight": { "const": 2 },
|
||||
"description": { "const": "View, download and edit." },
|
||||
"displayName": { "const": "Can edit without versions" },
|
||||
"description": { "const": "View, download, upload and edit." },
|
||||
"displayName": { "const": "Can edit" },
|
||||
"id": { "const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a" }
|
||||
}
|
||||
},
|
||||
@@ -223,7 +223,7 @@ Feature: an user shares resources
|
||||
"type": "object",
|
||||
"required": ["@libre.graph.weight", "description", "displayName", "id"],
|
||||
"properties": {
|
||||
"displayName": { "const": "Can edit" }
|
||||
"displayName": { "const": "Can edit with versions and show invitees" }
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -275,8 +275,8 @@ Feature: an user shares resources
|
||||
"required": ["@libre.graph.weight", "description", "displayName", "id"],
|
||||
"properties": {
|
||||
"@libre.graph.weight": { "const": 2 },
|
||||
"description": { "const": "View, download and edit." },
|
||||
"displayName": { "const": "Can edit without versions" },
|
||||
"description": { "const": "View, download, upload and edit." },
|
||||
"displayName": { "const": "Can edit" },
|
||||
"id": { "const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a" }
|
||||
}
|
||||
},
|
||||
@@ -284,7 +284,7 @@ Feature: an user shares resources
|
||||
"type": "object",
|
||||
"required": ["@libre.graph.weight", "description", "displayName", "id"],
|
||||
"properties": {
|
||||
"displayName": { "const": "Can edit" }
|
||||
"displayName": { "const": "Can edit with versions and show invitees" }
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -332,7 +332,7 @@ Feature: an user shares resources
|
||||
"type": "object",
|
||||
"required": ["@libre.graph.weight", "description", "displayName", "id"],
|
||||
"properties": {
|
||||
"displayName": { "const": "Can upload" }
|
||||
"displayName": { "const": "Can edit" }
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -341,7 +341,7 @@ Feature: an user shares resources
|
||||
"properties": {
|
||||
"@libre.graph.weight": { "const": 3 },
|
||||
"description": { "const": "View, download, upload, edit, add and delete." },
|
||||
"displayName": { "const": "Can edit without versions" },
|
||||
"displayName": { "const": "Can edit with trashbin" },
|
||||
"id": { "const": "fb6c3e19-e378-47e5-b277-9732f9de6e21" }
|
||||
}
|
||||
},
|
||||
@@ -349,7 +349,7 @@ Feature: an user shares resources
|
||||
"type": "object",
|
||||
"required": ["@libre.graph.weight", "description", "displayName", "id"],
|
||||
"properties": {
|
||||
"displayName": { "const": "Can edit" }
|
||||
"displayName": { "const": "Can edit with trashbin, versions and show invitees" }
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -400,7 +400,7 @@ Feature: an user shares resources
|
||||
"type": "object",
|
||||
"required": ["@libre.graph.weight", "description", "displayName", "id"],
|
||||
"properties": {
|
||||
"displayName": { "const": "Can upload" }
|
||||
"displayName": { "const": "Can edit" }
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -409,7 +409,7 @@ Feature: an user shares resources
|
||||
"properties": {
|
||||
"@libre.graph.weight": { "const": 3 },
|
||||
"description": { "const": "View, download, upload, edit, add and delete." },
|
||||
"displayName": { "const": "Can edit without versions" },
|
||||
"displayName": { "const": "Can edit with trashbin" },
|
||||
"id": { "const": "fb6c3e19-e378-47e5-b277-9732f9de6e21" }
|
||||
}
|
||||
},
|
||||
@@ -417,7 +417,7 @@ Feature: an user shares resources
|
||||
"type": "object",
|
||||
"required": ["@libre.graph.weight", "description", "displayName", "id"],
|
||||
"properties": {
|
||||
"displayName": { "const": "Can edit" }
|
||||
"displayName": { "const": "Can edit with trashbin, versions and show invitees" }
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
+6
-6
@@ -1179,7 +1179,7 @@ Feature: ListGrants role
|
||||
"properties": {
|
||||
"@libre.graph.weight": {"const": 2},
|
||||
"description": {"const": "View, download and show all invited people."},
|
||||
"displayName": {"const": "Can view"},
|
||||
"displayName": {"const": "Can view and show invitees"},
|
||||
"id": {"const": "d5041006-ebb3-4b4a-b6a4-7c180ecfb17d"}
|
||||
}
|
||||
},
|
||||
@@ -1187,14 +1187,14 @@ Feature: ListGrants role
|
||||
"type": "object",
|
||||
"required": ["@libre.graph.weight","description","displayName","id"],
|
||||
"properties": {
|
||||
"displayName": {"const": "Can upload"}
|
||||
"displayName": {"const": "Can edit with trashbin"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["@libre.graph.weight","description","displayName","id"],
|
||||
"properties": {
|
||||
"displayName": {"const": "Can edit without versions"}
|
||||
"displayName": {"const": "Can edit"}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1242,7 +1242,7 @@ Feature: ListGrants role
|
||||
"required": ["@libre.graph.weight","description","displayName","id"],
|
||||
"properties": {
|
||||
"@libre.graph.weight": {"const": 2},
|
||||
"displayName": {"const": "Can edit without versions"},
|
||||
"displayName": {"const": "Can edit"},
|
||||
"id": {"const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a"}
|
||||
}
|
||||
},
|
||||
@@ -1251,8 +1251,8 @@ Feature: ListGrants role
|
||||
"required": ["@libre.graph.weight","description","displayName","id"],
|
||||
"properties": {
|
||||
"@libre.graph.weight": {"const": 3},
|
||||
"description": {"const": "View, download, edit and show all invited people."},
|
||||
"displayName": {"const": "Can edit without versions"},
|
||||
"description": {"const": "View, download, upload, edit and show all invited people."},
|
||||
"displayName": {"const": "Can edit and show invitees"},
|
||||
"id": {"const": "c1235aea-d106-42db-8458-7d5610fb0a67"}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ Feature: filter sharing permissions
|
||||
"const": "View, download, upload, edit, add and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "fb6c3e19-e378-47e5-b277-9732f9de6e21"
|
||||
@@ -186,10 +186,10 @@ Feature: filter sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and edit."
|
||||
"const": "View, download, upload and edit."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a"
|
||||
@@ -308,10 +308,10 @@ Feature: filter sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and upload."
|
||||
"const": "View, download, upload, edit and add."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can upload"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "1c996275-f1c9-4e71-abdf-a42f6495e960"
|
||||
@@ -334,7 +334,7 @@ Feature: filter sharing permissions
|
||||
"const": "View, download, upload, edit, add and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "fb6c3e19-e378-47e5-b277-9732f9de6e21"
|
||||
@@ -453,10 +453,10 @@ Feature: filter sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and edit."
|
||||
"const": "View, download, upload and edit."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a"
|
||||
@@ -528,10 +528,10 @@ Feature: filter sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and upload."
|
||||
"const": "View, download, upload, edit and add."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can upload"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "1c996275-f1c9-4e71-abdf-a42f6495e960"
|
||||
@@ -554,7 +554,7 @@ Feature: filter sharing permissions
|
||||
"const": "View, download, upload, edit, add and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "fb6c3e19-e378-47e5-b277-9732f9de6e21"
|
||||
@@ -650,10 +650,10 @@ Feature: filter sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and edit."
|
||||
"const": "View, download, upload and edit."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a"
|
||||
@@ -775,10 +775,10 @@ Feature: filter sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and edit."
|
||||
"const": "View, download, upload and edit."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a"
|
||||
@@ -900,10 +900,10 @@ Feature: filter sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and upload."
|
||||
"const": "View, download, upload, edit and add."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can upload"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "1c996275-f1c9-4e71-abdf-a42f6495e960"
|
||||
@@ -926,7 +926,7 @@ Feature: filter sharing permissions
|
||||
"const": "View, download, upload, edit, add and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "fb6c3e19-e378-47e5-b277-9732f9de6e21"
|
||||
@@ -1025,10 +1025,10 @@ Feature: filter sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and upload."
|
||||
"const": "View, download, upload, edit and add."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can upload"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "1c996275-f1c9-4e71-abdf-a42f6495e960"
|
||||
@@ -1051,7 +1051,7 @@ Feature: filter sharing permissions
|
||||
"const": "View, download, upload, edit, add and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "fb6c3e19-e378-47e5-b277-9732f9de6e21"
|
||||
@@ -1150,10 +1150,10 @@ Feature: filter sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and edit."
|
||||
"const": "View, download, upload and edit."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a"
|
||||
@@ -1205,8 +1205,8 @@ Feature: filter sharing permissions
|
||||
"required": ["@libre.graph.weight","description","displayName","id"],
|
||||
"properties": {
|
||||
"@libre.graph.weight": {"const": 2},
|
||||
"description": {"const": "View, download and edit."},
|
||||
"displayName": {"const": "Can edit without versions"},
|
||||
"description": {"const": "View, download, upload and edit."},
|
||||
"displayName": {"const": "Can edit"},
|
||||
"id": {"const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a" }
|
||||
}
|
||||
}
|
||||
@@ -1256,7 +1256,7 @@ Feature: filter sharing permissions
|
||||
"properties": {
|
||||
"@libre.graph.weight": {"const": 2},
|
||||
"description": {"const": "View, download, upload, edit, add and delete."},
|
||||
"displayName": {"const": "Can edit without versions"},
|
||||
"displayName": {"const": "Can edit with trashbin"},
|
||||
"id": {"const": "fb6c3e19-e378-47e5-b277-9732f9de6e21"}
|
||||
}
|
||||
}
|
||||
@@ -1308,8 +1308,8 @@ Feature: filter sharing permissions
|
||||
"required": ["@libre.graph.weight","description","displayName","id"],
|
||||
"properties": {
|
||||
"@libre.graph.weight": {"const": 2},
|
||||
"description": {"const": "View, download and edit."},
|
||||
"displayName": {"const": "Can edit without versions"},
|
||||
"description": {"const": "View, download, upload and edit."},
|
||||
"displayName": {"const": "Can edit"},
|
||||
"id": {"const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a"}
|
||||
}
|
||||
}
|
||||
@@ -1362,7 +1362,7 @@ Feature: filter sharing permissions
|
||||
"properties": {
|
||||
"@libre.graph.weight": {"const": 2},
|
||||
"description": {"const": "View, download, upload, edit, add and delete."},
|
||||
"displayName": {"const": "Can edit without versions"},
|
||||
"displayName": {"const": "Can edit with trashbin"},
|
||||
"id": {"const": "fb6c3e19-e378-47e5-b277-9732f9de6e21"}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,10 +86,10 @@ Feature: List a sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and upload."
|
||||
"const": "View, download, upload, edit and add."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can upload"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "1c996275-f1c9-4e71-abdf-a42f6495e960"
|
||||
@@ -112,7 +112,7 @@ Feature: List a sharing permissions
|
||||
"const": "View, download, upload, edit, add and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "fb6c3e19-e378-47e5-b277-9732f9de6e21"
|
||||
@@ -209,10 +209,10 @@ Feature: List a sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete including the history."
|
||||
"const": "View, download, upload, edit, add, show all versions and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit"
|
||||
"const": "Can edit with versions and trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "58c63c02-1d89-4572-916a-870abc5a1b7d"
|
||||
@@ -232,7 +232,7 @@ Feature: List a sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete and manage members."
|
||||
"const": "View, download, upload, edit, add, show all versions, delete and manage members."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can manage"
|
||||
@@ -342,10 +342,10 @@ Feature: List a sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete including the history."
|
||||
"const": "View, download, upload, edit, add, show all versions and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit"
|
||||
"const": "Can edit with versions and trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "58c63c02-1d89-4572-916a-870abc5a1b7d"
|
||||
@@ -365,7 +365,7 @@ Feature: List a sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete and manage members."
|
||||
"const": "View, download, upload, edit, add, show all versions, delete and manage members."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can manage"
|
||||
@@ -606,10 +606,10 @@ Feature: List a sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and edit."
|
||||
"const": "View, download, upload and edit."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a"
|
||||
@@ -706,10 +706,10 @@ Feature: List a sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and upload."
|
||||
"const": "View, download, upload, edit and add."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can upload"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "1c996275-f1c9-4e71-abdf-a42f6495e960"
|
||||
@@ -732,7 +732,7 @@ Feature: List a sharing permissions
|
||||
"const": "View, download, upload, edit, add and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "fb6c3e19-e378-47e5-b277-9732f9de6e21"
|
||||
@@ -829,10 +829,10 @@ Feature: List a sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download and edit."
|
||||
"const": "View, download, upload and edit."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit"
|
||||
},
|
||||
"id": {
|
||||
"const": "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a"
|
||||
@@ -954,10 +954,10 @@ Feature: List a sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete including the history."
|
||||
"const": "View, download, upload, edit, add, show all versions and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit"
|
||||
"const": "Can edit with versions and trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "58c63c02-1d89-4572-916a-870abc5a1b7d"
|
||||
@@ -978,7 +978,7 @@ Feature: List a sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete and manage members."
|
||||
"const": "View, download, upload, edit, add, show all versions, delete and manage members."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can manage"
|
||||
@@ -1077,10 +1077,10 @@ Feature: List a sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete including the history."
|
||||
"const": "View, download, upload, edit, add, show all versions and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit"
|
||||
"const": "Can edit with versions and trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "58c63c02-1d89-4572-916a-870abc5a1b7d"
|
||||
@@ -1100,7 +1100,7 @@ Feature: List a sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete and manage members."
|
||||
"const": "View, download, upload, edit, add, show all versions, delete and manage members."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can manage"
|
||||
@@ -1361,10 +1361,10 @@ Feature: List a sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete including the history."
|
||||
"const": "View, download, upload, edit, add, show all versions and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit"
|
||||
"const": "Can edit with versions and trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "58c63c02-1d89-4572-916a-870abc5a1b7d"
|
||||
@@ -1385,7 +1385,7 @@ Feature: List a sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete and manage members."
|
||||
"const": "View, download, upload, edit, add, show all versions, delete and manage members."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can manage"
|
||||
@@ -1703,10 +1703,10 @@ Feature: List a sharing permissions
|
||||
"const": 2
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete including the history."
|
||||
"const": "View, download, upload, edit, add, show all versions and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit"
|
||||
"const": "Can edit with versions and trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "58c63c02-1d89-4572-916a-870abc5a1b7d"
|
||||
@@ -1726,7 +1726,7 @@ Feature: List a sharing permissions
|
||||
"const": 3
|
||||
},
|
||||
"description": {
|
||||
"const": "View, download, upload, edit, add, delete and manage members."
|
||||
"const": "View, download, upload, edit, add, show all versions, delete and manage members."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can manage"
|
||||
@@ -2234,7 +2234,7 @@ Feature: List a sharing permissions
|
||||
],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Can upload"
|
||||
"const": "Can edit"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2248,7 +2248,7 @@ Feature: List a sharing permissions
|
||||
],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2314,7 +2314,7 @@ Feature: List a sharing permissions
|
||||
"const": "View, download, upload, edit, add and delete."
|
||||
},
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
},
|
||||
"id": {
|
||||
"const": "3284f2d5-0070-4ad8-ac40-c247f7c1fb27"
|
||||
@@ -2332,7 +2332,7 @@ Feature: List a sharing permissions
|
||||
],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Can edit"
|
||||
"const": "Can edit with versions and trashbin"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2427,7 +2427,7 @@ Feature: List a sharing permissions
|
||||
],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Can upload"
|
||||
"const": "Can edit"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2441,7 +2441,7 @@ Feature: List a sharing permissions
|
||||
],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2524,7 +2524,7 @@ Feature: List a sharing permissions
|
||||
],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Can upload"
|
||||
"const": "Can edit"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2538,7 +2538,7 @@ Feature: List a sharing permissions
|
||||
],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Can edit without versions"
|
||||
"const": "Can edit with trashbin"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,14 +15,14 @@ Feature: List unified roles
|
||||
| SpaceViewer | enabled | View and download. |
|
||||
| Editor | enabled | View, download, upload, edit, add and delete. |
|
||||
| EditorListGrants | disabled | View, download, upload, edit, add, delete and show all invited people. |
|
||||
| EditorListGrantsWithVersions | disabled | View, download, upload, edit, delete and show all invited people, show all versions. |
|
||||
| SpaceEditor | enabled | View, download, upload, edit, add, delete including the history. |
|
||||
| SpaceEditorWithoutVersions | disabled | View, download, upload, edit, add and delete. |
|
||||
| SpaceEditorWithoutTrashbin | disabled | View, download, upload, edit, add and delete. |
|
||||
| FileEditor | enabled | View, download and edit. |
|
||||
| FileEditorListGrants | disabled | View, download, edit and show all invited people. |
|
||||
| FileEditorListGrantsWithVersions | disabled | View, download, edit and show all invited people, show all versions. |
|
||||
| EditorLite | enabled | View, download and upload. |
|
||||
| Manager | enabled | View, download, upload, edit, add, delete and manage members. |
|
||||
| EditorListGrantsWithVersions | disabled | View, download, upload, edit, delete, show all versions and all invited people. |
|
||||
| SpaceEditor | enabled | View, download, upload, edit, add, show all versions and delete. |
|
||||
| SpaceEditorWithoutVersions | disabled | View, download, upload, edit and add. |
|
||||
| SpaceEditorWithoutTrashbin | disabled | View, download, upload, edit, add and show all versions. |
|
||||
| FileEditor | enabled | View, download, upload and edit. |
|
||||
| FileEditorListGrants | disabled | View, download, upload, edit and show all invited people. |
|
||||
| FileEditorListGrantsWithVersions | disabled | View, download, upload, edit, show all versions and all invited people. |
|
||||
| EditorLite | enabled | View, download, upload, edit and add. |
|
||||
| Manager | enabled | View, download, upload, edit, add, show all versions, delete and manage members. |
|
||||
| SecureViewer | disabled | View only documents, images and PDFs. Watermarks will be applied. |
|
||||
| Denied | disabled | Deny all access. |
|
||||
Reference in new issue
Block a user