Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Expand access rights
James Cole22498b580478
diff --git a/app/Enums/UserRoleEnum.php b/app/Enums/UserRoleEnum.phpindex 25dc051383..7504a918f8 100644--- a/app/Enums/UserRoleEnum.php+++ b/app/Enums/UserRoleEnum.php@@ -30,6 +30,7 @@ namespace FireflyIII\Enums;enum UserRoleEnum: string{// most basic rights, cannot see other members, can see everything else.+ // includes reading of metadatacase READ_ONLY = 'ro';// required to even USE the group properly (in this order)@@ -38,6 +39,15 @@ enum UserRoleEnum: string// required to edit, add or change categories/tags/object-groupscase MANAGE_META = 'mng_meta';+ // read other objects and things.+ case READ_BUDGETS = 'read_budgets';+ case READ_PIGGY_BANKS = 'read_piggies';+ case READ_SUBSCRIPTIONS = 'read_subscriptions';+ case READ_RULES = 'read_rules';+ case READ_RECURRING = 'read_recurring';+ case READ_WEBHOOKS = 'read_webhooks';+ case READ_CURRENCIES = 'read_currencies';+// manage other financial objects:case MANAGE_BUDGETS = 'mng_budgets';case MANAGE_PIGGY_BANKS = 'mng_piggies';diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.phpindex df3ac376e6..7fc8a81a05 100644--- a/resources/lang/en_US/firefly.php+++ b/resources/lang/en_US/firefly.php@@ -1409,7 +1409,7 @@ return ['administration_role_mng_piggies' => 'Manage piggy banks','administration_role_mng_subscriptions' => 'Manage subscriptions','administration_role_mng_rules' => 'Manage rules',- 'administration_role_mng_recurring' => 'Manage recurring transactions ',+ 'administration_role_mng_recurring' => 'Manage recurring transactions','administration_role_mng_webhooks' => 'Manage webhooks','administration_role_mng_currencies' => 'Manage currencies','administration_role_view_reports' => 'View reports',diff --git a/resources/lang/en_US/validation.php b/resources/lang/en_US/validation.phpindex 8c4ec0ddea..ce9ce7a914 100644--- a/resources/lang/en_US/validation.php+++ b/resources/lang/en_US/validation.php@@ -63,7 +63,7 @@ return ['invalid_selection' => 'Your selection is invalid.','belongs_user' => 'This value is linked to an object that does not seem to exist.','belongs_user_or_user_group' => 'This value is linked to an object that does not seem to exist in your current financial administration.',- 'no_access_group' => 'The user has no access to this user group.',+ 'no_access_group' => 'The user has no access to this administration.','no_accepted_roles_defined' => 'No access roles have been defined for this endpoint, access denied.','at_least_one_transaction' => 'Need at least one transaction.','recurring_transaction_id' => 'Need at least one transaction.',diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twigindex 37a03b7114..da6e1da02a 100644--- a/resources/views/transactions/show.twig+++ b/resources/views/transactions/show.twig@@ -74,7 +74,7 @@<tr><td style="width:30%;">{{ trans('list.date') }}</td><td>- <span class="date-time" data-date="{{ first.date.toIso8601ZuluString() }}">+ <span class="date-time" data-date="{{ first.date.toIso8601ZuluString() }}" title="{{ first.date.isoFormat(dateTimeFormat) }}{% if(first.date_tz != '') %} ({{ trans('firefly.stored_in_tz', {timezone: first.date_tz }) }}, {{ trans('firefly.displayed_in_tz', {timezone: config('app.timezone') }) }}){% endif %}">{{ first.date.isoFormat(dateTimeFormat) }}{% if(first.date_tz != '') %}({{ trans('firefly.stored_in_tz', {timezone: first.date_tz }) }})