@nextsparkjs/theme-default 0.1.0-beta.103 → 0.1.0-beta.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/permissions.config.ts +11 -37
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - roles: Custom roles beyond core (owner, admin, member, viewer)
|
|
8
8
|
* - teams: Team-level permissions (team.view, team.edit, etc.)
|
|
9
9
|
* - entities: Entity CRUD permissions (customers, tasks, etc.)
|
|
10
|
-
* - features: Theme-specific feature permissions (page-builder, blog
|
|
10
|
+
* - features: Theme-specific feature permissions (page-builder, blog)
|
|
11
11
|
*
|
|
12
12
|
* All sections use unified format: { action: '...', roles: [...] }
|
|
13
13
|
*
|
|
@@ -198,38 +198,18 @@ export const PERMISSIONS_CONFIG_OVERRIDES: ThemePermissionsConfig = {
|
|
|
198
198
|
roles: ['owner', 'admin'],
|
|
199
199
|
},
|
|
200
200
|
|
|
201
|
-
// MEDIA MANAGEMENT
|
|
202
|
-
{
|
|
203
|
-
action: 'media.read',
|
|
204
|
-
label: 'View Media',
|
|
205
|
-
description: 'Can browse and view media files in the library',
|
|
206
|
-
category: 'Media',
|
|
207
|
-
roles: ['owner', 'admin', 'editor', 'member', 'viewer'],
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
action: 'media.upload',
|
|
211
|
-
label: 'Upload Media',
|
|
212
|
-
description: 'Can upload images, videos, and other media files',
|
|
213
|
-
category: 'Media',
|
|
214
|
-
roles: ['owner', 'admin', 'editor'],
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
action: 'media.update',
|
|
218
|
-
label: 'Edit Media',
|
|
219
|
-
description: 'Can edit media metadata, tags, and captions',
|
|
220
|
-
category: 'Media',
|
|
221
|
-
roles: ['owner', 'admin', 'editor'],
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
action: 'media.delete',
|
|
225
|
-
label: 'Delete Media',
|
|
226
|
-
description: 'Can permanently delete media files',
|
|
227
|
-
category: 'Media',
|
|
228
|
-
roles: ['owner', 'admin'],
|
|
229
|
-
dangerous: true,
|
|
230
|
-
},
|
|
231
201
|
],
|
|
232
202
|
|
|
203
|
+
// ==========================================
|
|
204
|
+
// CORE PERMISSION OVERRIDES
|
|
205
|
+
// ==========================================
|
|
206
|
+
// Extend core media permissions with the 'editor' custom role
|
|
207
|
+
overrides: {
|
|
208
|
+
'media.read': { roles: ['owner', 'admin', 'editor', 'member', 'viewer'] },
|
|
209
|
+
'media.upload': { roles: ['owner', 'admin', 'editor'] },
|
|
210
|
+
'media.update': { roles: ['owner', 'admin', 'editor'] },
|
|
211
|
+
},
|
|
212
|
+
|
|
233
213
|
// ==========================================
|
|
234
214
|
// UI SECTIONS
|
|
235
215
|
// ==========================================
|
|
@@ -258,12 +238,6 @@ export const PERMISSIONS_CONFIG_OVERRIDES: ThemePermissionsConfig = {
|
|
|
258
238
|
description: 'Blog publishing and management features',
|
|
259
239
|
categories: ['Blog'],
|
|
260
240
|
},
|
|
261
|
-
{
|
|
262
|
-
id: 'media',
|
|
263
|
-
label: 'Media',
|
|
264
|
-
description: 'Media library management',
|
|
265
|
-
categories: ['Media'],
|
|
266
|
-
},
|
|
267
241
|
],
|
|
268
242
|
}
|
|
269
243
|
|