mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Expand access rights
This commit is contained in:
@@ -30,6 +30,7 @@ namespace FireflyIII\Enums;
|
|||||||
enum UserRoleEnum: string
|
enum UserRoleEnum: string
|
||||||
{
|
{
|
||||||
// most basic rights, cannot see other members, can see everything else.
|
// most basic rights, cannot see other members, can see everything else.
|
||||||
|
// includes reading of metadata
|
||||||
case READ_ONLY = 'ro';
|
case READ_ONLY = 'ro';
|
||||||
|
|
||||||
// required to even USE the group properly (in this order)
|
// 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-groups
|
// required to edit, add or change categories/tags/object-groups
|
||||||
case MANAGE_META = 'mng_meta';
|
case 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:
|
// manage other financial objects:
|
||||||
case MANAGE_BUDGETS = 'mng_budgets';
|
case MANAGE_BUDGETS = 'mng_budgets';
|
||||||
case MANAGE_PIGGY_BANKS = 'mng_piggies';
|
case MANAGE_PIGGY_BANKS = 'mng_piggies';
|
||||||
|
@@ -63,7 +63,7 @@ return [
|
|||||||
'invalid_selection' => 'Your selection is invalid.',
|
'invalid_selection' => 'Your selection is invalid.',
|
||||||
'belongs_user' => 'This value is linked to an object that does not seem to exist.',
|
'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.',
|
'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.',
|
'no_accepted_roles_defined' => 'No access roles have been defined for this endpoint, access denied.',
|
||||||
'at_least_one_transaction' => 'Need at least one transaction.',
|
'at_least_one_transaction' => 'Need at least one transaction.',
|
||||||
'recurring_transaction_id' => 'Need at least one transaction.',
|
'recurring_transaction_id' => 'Need at least one transaction.',
|
||||||
|
@@ -74,7 +74,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="width:30%;">{{ trans('list.date') }}</td>
|
<td style="width:30%;">{{ trans('list.date') }}</td>
|
||||||
<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) }}
|
{{ first.date.isoFormat(dateTimeFormat) }}
|
||||||
{% if(first.date_tz != '') %}
|
{% if(first.date_tz != '') %}
|
||||||
({{ trans('firefly.stored_in_tz', {timezone: first.date_tz }) }})
|
({{ trans('firefly.stored_in_tz', {timezone: first.date_tz }) }})
|
||||||
|
Reference in New Issue
Block a user