diff --git a/lib/backend/permissions.dart b/lib/backend/permissions.dart index b82009d..0e78859 100644 --- a/lib/backend/permissions.dart +++ b/lib/backend/permissions.dart @@ -70,7 +70,7 @@ class RoomPermission { return oB("0000010"); } - static int get listCategoriesAndProducts { + static int get editRoomContent { return oB("0000100"); } @@ -94,7 +94,7 @@ class RoomPermission { return [ addArticles, removeArticles, - listCategoriesAndProducts, + editRoomContent, changeMeta, ota, changeAdmin, @@ -107,11 +107,11 @@ class RoomPermission { switch (permission) { case 1: - return trans!.roomPermissionAddArticles; + return trans!.roomPermissionAddItems; case 2: - return trans!.roomPermissionRemoveArticles; + return trans!.roomPermissionRemoveItems; case 4: - return trans!.roomPermissionList; + return trans!.roomPermissionEditContent; case 8: return trans!.roomPermissionChangeMeta; case 16: @@ -130,11 +130,11 @@ class RoomPermission { switch (permission) { case 1: - return trans!.roomPermissionAddArticlesSubtitle; + return trans!.roomPermissionAddItemsSubtitle; case 2: - return trans!.roomPermissionRemoveArticlesSubtitle; + return trans!.roomPermissionRemoveItemsSubtitle; case 4: - return trans!.roomPermissionListSubtitle; + return trans!.roomPermissionEditContentSubtitle; case 8: return trans!.roomPermissionChangeMetaSubtitle; case 16: diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index ac5ba39..9414070 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -168,12 +168,12 @@ "updateRoomPermissionsHint": "Update default permission set", "roomDefaultPermissions": "Default Permissions", - "roomPermissionAddArticles": "Add Articles", - "roomPermissionAddArticlesSubtitle": "Allows users to add items to the shopping list", - "roomPermissionRemoveArticles": "Remove Articles", - "roomPermissionRemoveArticlesSubtitle": "Allows users to remove items from the shopping list", - "roomPermissionList": "List Products and Categories", - "roomPermissionListSubtitle": "Allows the user to view products and categories", + "roomPermissionAddItems": "Add Items", + "roomPermissionAddItemsSubtitle": "Allows users to add items to the shopping list", + "roomPermissionRemoveItems": "Remove Items", + "roomPermissionRemoveItemsSubtitle": "Allows users to remove items from the shopping list", + "roomPermissionEditContent": "Edit Products and Categories", + "roomPermissionEditContentSubtitle": "Allows the user to edit products and categories", "roomPermissionChangeMeta": "Change Room Metadata", "roomPermissionChangeMetaSubtitle": "Allows the user to edit the room name, description and icon", "roomPermissionManageOTA": "Manage OTAs",