Add ACL settings for app configure

This commit is contained in:
Johannes Zellner
2025-03-02 16:23:14 +01:00
parent e13db20c85
commit ab0d5c8967
6 changed files with 83 additions and 21 deletions
+12
View File
@@ -1,4 +1,14 @@
// app.accessRestriction:
// null = ANY
// false = NOSSO
// { users: [], groups: [] } = RESTRICTED
const ACL_OPTIONS = Object.freeze({
ANY: 'any',
RESTRICTED: 'restricted',
NOSSO: 'nosso',
});
// keep in sync with box/src/apps.js
const ISTATES = {
PENDING_INSTALL: 'pending_install',
@@ -297,6 +307,7 @@ const BACKUP_FORMATS = [
// named exports
export {
ACL_OPTIONS,
APP_TYPES,
ERROR,
HSTATES,
@@ -326,6 +337,7 @@ export {
// default export
export default {
ACL_OPTIONS,
APP_TYPES,
ERROR,
HSTATES,