diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-05 17:31:25 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-05 17:31:25 +0100 |
| commit | b05452250feb5bdf78fced07e5a67c4ac4ff2d47 (patch) | |
| tree | 27a208b19bea3421e566dafa7ad52444f87bae5f | |
| parent | cd89b67a3b89555fc1314c35f2ef7de848ceb56d (diff) | |
| download | stock-b05452250feb5bdf78fced07e5a67c4ac4ff2d47.tar.gz stock-b05452250feb5bdf78fced07e5a67c4ac4ff2d47.tar.bz2 stock-b05452250feb5bdf78fced07e5a67c4ac4ff2d47.zip | |
Rationalise stock permissions
p_stock_view: registered; p_stock_create/update: editors; p_stock_admin: admin.
Remove p_stock_list_assemblies (unused, covered by p_stock_view) and
p_stock_create_public_gal (unused, covered by p_stock_create).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rwxr-xr-x | admin/schema_inc.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 2148ac7..b236b5c 100755 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -62,12 +62,10 @@ $gBitInstaller->registerPreferences( STOCK_PKG_NAME, [ // ### Default User Permissions $gBitInstaller->registerUserPermissions( STOCK_PKG_NAME, [ - [ 'p_stock_list_assemblies', 'Can list stock assemblies', 'basic', STOCK_PKG_NAME ], - [ 'p_stock_view', 'Can view stock assemblies and components', 'basic', STOCK_PKG_NAME ], - [ 'p_stock_create', 'Can create stock assemblies and components', 'registered', STOCK_PKG_NAME ], - [ 'p_stock_update', 'Can update stock assemblies and components', 'editors', STOCK_PKG_NAME ], - [ 'p_stock_admin', 'Can administer stock', 'editors', STOCK_PKG_NAME ], - [ 'p_stock_create_public_gal','Can create public assemblies', 'editors', STOCK_PKG_NAME ], + [ 'p_stock_view', 'Can view stock assemblies and components', 'registered', STOCK_PKG_NAME ], + [ 'p_stock_create', 'Can create stock assemblies and components', 'editors', STOCK_PKG_NAME ], + [ 'p_stock_update', 'Can update stock assemblies and components', 'editors', STOCK_PKG_NAME ], + [ 'p_stock_admin', 'Can administer stock', 'admin', STOCK_PKG_NAME ], ] ); // ### Register content types |
