basic file sharing
This commit is contained in:
@@ -4,7 +4,12 @@ export type UserWarrenPermissionKey =
|
||||
| 'canListFiles'
|
||||
| 'canReadFiles'
|
||||
| 'canModifyFiles'
|
||||
| 'canDeleteFiles';
|
||||
| 'canDeleteFiles'
|
||||
| 'canListShares'
|
||||
| 'canListShares'
|
||||
| 'canCreateShares'
|
||||
| 'canModifyShares'
|
||||
| 'canDeleteShares';
|
||||
|
||||
export function getUserWarrenPermissions(
|
||||
userWarren: UserWarren
|
||||
@@ -14,6 +19,10 @@ export function getUserWarrenPermissions(
|
||||
['canReadFiles', userWarren.canReadFiles],
|
||||
['canModifyFiles', userWarren.canModifyFiles],
|
||||
['canDeleteFiles', userWarren.canDeleteFiles],
|
||||
['canListShares', userWarren.canListShares],
|
||||
['canCreateShares', userWarren.canCreateShares],
|
||||
['canModifyShares', userWarren.canModifyShares],
|
||||
['canDeleteShares', userWarren.canDeleteShares],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -22,6 +31,10 @@ const PERMISSION_NAMES: Record<UserWarrenPermissionKey, string> = {
|
||||
canReadFiles: 'Read files',
|
||||
canModifyFiles: 'Modify files',
|
||||
canDeleteFiles: 'Delete files',
|
||||
canListShares: 'List shares',
|
||||
canCreateShares: 'Create shares',
|
||||
canModifyShares: 'Modify shares',
|
||||
canDeleteShares: 'Delete shares',
|
||||
};
|
||||
|
||||
export function getUserWarrenPermissionName(
|
||||
|
||||
Reference in New Issue
Block a user