chore: enable vaults if dev mode or if user has role (#2483)
This commit is contained in:
@@ -41,6 +41,8 @@ export class NativeFeatureIdentifier extends ValueObject<NativeFeatureIdentifier
|
||||
|
||||
Clipper: 'org.standardnotes.clipper',
|
||||
|
||||
SharedVaults: 'org.standardnotes.shared-vaults',
|
||||
|
||||
DeprecatedMarkdownVisualEditor: 'org.standardnotes.markdown-visual-editor',
|
||||
DeprecatedBoldEditor: 'org.standardnotes.bold-editor',
|
||||
DeprecatedMarkdownBasicEditor: 'org.standardnotes.simple-markdown-editor',
|
||||
|
||||
@@ -65,5 +65,11 @@ export function serverFeatures(): ServerFeatureDescription[] {
|
||||
permission_name: PermissionName.ListedCustomDomain,
|
||||
availableInRoles: [RoleName.NAMES.PlusUser, RoleName.NAMES.ProUser],
|
||||
},
|
||||
{
|
||||
name: 'Shared Vaults',
|
||||
identifier: NativeFeatureIdentifier.TYPES.SharedVaults,
|
||||
permission_name: PermissionName.SharedVaults,
|
||||
availableInRoles: [RoleName.NAMES.VaultsUser],
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
@@ -38,4 +38,5 @@ export enum PermissionName {
|
||||
SubscriptionSharing = 'server:subscription-sharing',
|
||||
SuperEditor = 'editor:super-editor',
|
||||
Clipper = 'app:clipper',
|
||||
SharedVaults = 'server:shared-vaults',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user