Skip to content

Commit

Permalink
Adapt wording, change role name
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar authored and kulmann committed Sep 14, 2022
1 parent 0201eef commit 77b3c0b
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 172 deletions.
2 changes: 1 addition & 1 deletion packages/web-app-files/src/helpers/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export function buildSharedResource(
resource.canShare = () => true
resource.canRename = () => true
resource.canBeDeleted = () => true
resource.canDeny = () => SharePermissions.deny.enabled(share.permissions)
resource.canDeny = () => SharePermissions.denied.enabled(share.permissions)
}

resource.extension = extractExtensionFromFile(resource)
Expand Down
2 changes: 1 addition & 1 deletion packages/web-client/src/helpers/share/permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export abstract class SharePermissions {

static readonly share = new SharePermission('share', SharePermissionBit.Share, $gettext('Share'))

static readonly deny = new SharePermission('deny', 64, $gettext('Deny'))
static readonly denied = new SharePermission('denied', 64, $gettext('Deny'))

static permissionsToBitmask(permissions: SharePermission[]): number {
return (permissions || []).reduce((b: number, p: SharePermission) => b | p.bit, 0)
Expand Down
10 changes: 5 additions & 5 deletions packages/web-client/src/helpers/share/role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ export const peopleRoleCustomFolder = new CustomShareRole(
]
)
export const peopleRoleDenyFolder = new PeopleShareRole(
'deny',
'denied',
true,
$gettext('Deny'),
$gettext('deny'),
'user -unfollow',
[SharePermissions.deny]
$gettext('No access'),
$gettext('no access'),
'user-unfollow',
[SharePermissions.denied]
)
export const linkRoleInternalFile = new LinkShareRole(
'none',
Expand Down
Loading

0 comments on commit 77b3c0b

Please sign in to comment.