mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
[WIP] Implemented basic permissions (#960)
* Add permissions to Database & add "User"-classes * Add UI & API for Permissions, protect "User"-(Api)-Controller with new permissions. * Add some permissions. * Add permission localization * Add error handling. * Error pages: only redirect on 404 * ExceptionController: return JSON-Response on api-routes * Rename PRODUCT_ADD to PRODUCT_PURCHASE * Move translation to new file * Fix checkboxes stay selected on reload. * Remove configurable User-implementation * Remove MASTER_DATA_READ * Disable buttons the user isn't allowed to use. * Add default permissions for new users * When migration to permissions, everyone starts as ADMIN * Permission-Localization: add to transifex & LocalizationService * Review Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
committed by
GitHub
parent
f28697e5b4
commit
b7d1b21f1d
85
localization/en/permissions.po
Normal file
85
localization/en/permissions.po
Normal file
@@ -0,0 +1,85 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: http://www.transifex.com/grocy/grocy/language/en\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: en\n"
|
||||
"X-Domain: grocy/permissions\n"
|
||||
|
||||
msgid "ADMIN"
|
||||
msgstr ""
|
||||
|
||||
msgid "CREATE_USER"
|
||||
msgstr "Create new users"
|
||||
|
||||
msgid "EDIT_USER"
|
||||
msgstr "Edit existing users (including passwords)"
|
||||
|
||||
msgid "READ_USER"
|
||||
msgstr "View user data"
|
||||
|
||||
msgid "EDIT_SELF"
|
||||
msgstr "Edit own user data, e.g. password and name"
|
||||
|
||||
msgid "BATTERY_UNDO_TRACK_CHARGE_CYCLE"
|
||||
msgstr "Batteries: undo tracking of charge cycles"
|
||||
|
||||
msgid "BATTERY_TRACK_CHARGE_CYCLE"
|
||||
msgstr "Batteries: track charge cycle"
|
||||
|
||||
msgid "CHORE_TRACK"
|
||||
msgstr "Chores: track execution"
|
||||
|
||||
msgid "CHORE_TRACK_OTHERS"
|
||||
msgstr "Chores: Track execution for others"
|
||||
|
||||
msgid "CHORE_EDIT"
|
||||
msgstr "Chores: Edit chore data"
|
||||
|
||||
msgid "CHORE_UNDO"
|
||||
msgstr "Chores: undo tracked execution"
|
||||
|
||||
msgid "UPLOAD_FILE"
|
||||
msgstr "Upload files, e.g. product images"
|
||||
|
||||
msgid "DELETE_FILE"
|
||||
msgstr "Delete (uploaded) files"
|
||||
|
||||
msgid "MASTER_DATA_EDIT"
|
||||
msgstr "Edit Master data (e.g. products)"
|
||||
|
||||
msgid "TASKS_UNDO"
|
||||
msgstr "Tasks: undo tracked execution"
|
||||
|
||||
msgid "TASKS_MARK_COMPLETED"
|
||||
msgstr "Tasks: mark as completed"
|
||||
|
||||
msgid "STOCK_EDIT"
|
||||
msgstr "Stock: edit entries"
|
||||
|
||||
msgid "STOCK_TRANSFER"
|
||||
msgstr "Stock: transfer products between locations"
|
||||
|
||||
msgid "STOCK_CORRECTION"
|
||||
msgstr "Stock: correct wrong entries"
|
||||
|
||||
msgid "PRODUCT_CONSUME"
|
||||
msgstr "Consume Products"
|
||||
|
||||
msgid "PRODUCT_OPEN"
|
||||
msgstr "Open products"
|
||||
|
||||
msgid "PRODUCT_PURCHASE"
|
||||
msgstr "Purchase new products and add them to stock"
|
||||
|
||||
msgid "SHOPPINGLIST_ITEMS_ADD"
|
||||
msgstr "Add items to shopping list"
|
||||
|
||||
msgid "SHOPPINGLIST_ITEMS_DELETE"
|
||||
msgstr "Remove items from shopping list"
|
Reference in New Issue
Block a user