permission_forge 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -0
  3. data/app/controllers/concerns/permission_forge/api/response_renderer.rb +5 -0
  4. data/app/controllers/permission_forge/api/audit_events_controller.rb +9 -0
  5. data/app/controllers/permission_forge/audit_events_controller.rb +11 -0
  6. data/app/controllers/permission_forge/people_controller.rb +3 -1
  7. data/app/controllers/permission_forge/permission_set_editor.rb +2 -0
  8. data/app/controllers/permission_forge/permission_sets_controller.rb +8 -43
  9. data/app/frontend/permission_forge/pf_admin.css +56 -3
  10. data/app/frontend/permission_forge/pf_admin.js +73 -0
  11. data/app/helpers/permission_forge/application_helper.rb +1 -0
  12. data/app/helpers/permission_forge/set_summaries_helper.rb +144 -0
  13. data/app/helpers/permission_forge/ui_helper.rb +4 -3
  14. data/app/views/permission_forge/audit_events/unavailable.html.erb +7 -0
  15. data/app/views/permission_forge/people/_audit_tab.html.erb +4 -0
  16. data/app/views/permission_forge/permission_sets/_audit_tab.html.erb +4 -0
  17. data/app/views/permission_forge/permission_sets/_overview_body.html.erb +58 -0
  18. data/app/views/permission_forge/permission_sets/_set_summary_cells.html.erb +53 -0
  19. data/app/views/permission_forge/permission_sets/_set_summary_links.html.erb +14 -0
  20. data/app/views/permission_forge/permission_sets/index.html.erb +20 -14
  21. data/app/views/permission_forge/permission_sets/overview.html.erb +24 -0
  22. data/app/views/permission_forge/shared/_audit_unavailable.html.erb +2 -0
  23. data/config/locales/permission_forge.en.yml +114 -0
  24. data/config/locales/permission_forge.mk.yml +117 -0
  25. data/config/locales/permission_forge.sq.yml +117 -0
  26. data/config/routes.rb +1 -0
  27. data/lib/permission_forge/admin/last_changes.rb +1 -1
  28. data/lib/permission_forge/admin/permission_set_list.rb +62 -0
  29. data/lib/permission_forge/admin/set_overview.rb +100 -0
  30. data/lib/permission_forge/admin/set_summaries.rb +174 -0
  31. data/lib/permission_forge/admin/state_label.rb +3 -1
  32. data/lib/permission_forge/api/schema.rb +4 -2
  33. data/lib/permission_forge/audit/audited_views.rb +20 -2
  34. data/lib/permission_forge/cache/rails_cache.rb +23 -6
  35. data/lib/permission_forge/concerns/masked_attributes/alias_access.rb +28 -2
  36. data/lib/permission_forge/version.rb +1 -1
  37. data/lib/permission_forge.rb +3 -0
  38. metadata +11 -1
@@ -0,0 +1,58 @@
1
+ <%# The families or Resources of a set (Admin::SetOverview); each link opens the next view in place on the list. %>
2
+ <div class="pf-overview">
3
+ <% if overview.total.zero? %>
4
+ <p class="pf-text-3"><%= t('.empty') %></p>
5
+ <% elsif overview.families.empty? %>
6
+ <p class="pf-text-3"><%= t('.none_match') %>
7
+ <%= pf_overview_link set, t('.show_all', count: overview.total), { view: 'resources' } %></p>
8
+ <% elsif overview.groups? %>
9
+ <p class="pf-fs-12 pf-text-3"><%= t('.groups_hint') %></p>
10
+ <ul class="pf-overview__families">
11
+ <% overview.families.each do |family| %>
12
+ <li>
13
+ <%= pf_overview_link set, safe_join([pf_family_name(family), content_tag(:span, family.entries.size, class: 'pf-family__count'),
14
+ pf_overview_marks(family)].compact, ' '),
15
+ { view: 'resources', only: family.key }, class: 'pf-family' %>
16
+ </li>
17
+ <% end %>
18
+ </ul>
19
+ <% else %>
20
+ <p class="pf-overview__legend pf-fs-12 pf-text-3">
21
+ <span><%= safe_join(PermissionForge::SetSummariesHelper::ALL_FLAGS.map { |flag| "#{pf_flag_initial(flag)} #{t("permission_forge.ui.flags_short.#{flag}")}" }, ' · ') %></span>
22
+ <span><%= overview.muting? ? t('.legend_muting') : t('.legend') %></span>
23
+ <% if overview.filtered? %>
24
+ <% only = overview.only %>
25
+ <span class="pf-text-2">
26
+ <% if only == PermissionForge::Admin::SetOverview::NARROWED %>
27
+ <%= t('.only_narrowed') %>
28
+ <% elsif only == PermissionForge::Admin::SetOverview::VIEW_ALL %>
29
+ <%= t('.only_view_all') %>
30
+ <% else %>
31
+ <%= pf_t_markup(family: pf_family_name(overview.families.first)) { |held| t('.only_family', **held) } %>
32
+ <% end %>
33
+ </span>
34
+ <%= pf_overview_link set, t('.show_all', count: overview.total), { view: 'resources' } %>
35
+ <% end %>
36
+ </p>
37
+ <div class="pf-overview__cols">
38
+ <% overview.families.each_with_index do |family, index| %>
39
+ <% heading = "pf-overview-#{set.id}-#{index}" %>
40
+ <section class="pf-overview__family" aria-labelledby="<%= heading %>">
41
+ <%= pf_section_heading(safe_join([pf_family_name(family), content_tag(:span, " · #{family.entries.size}", class: 'pf-text-3')]), id: heading, in_page: true) %>
42
+ <ul class="pf-overview__list">
43
+ <% family.entries.each do |entry| %>
44
+ <li class="pf-overview__res<%= ' pf-overview__res--narrowed' if entry.narrowed? %>">
45
+ <span class="pf-overview__name">
46
+ <%= pf_overview_resource_link(set, entry, family) %>
47
+ <%= pf_off_badge unless entry.active %>
48
+ <%= pf_overview_marks(entry) %>
49
+ </span>
50
+ <%= pf_flag_strip(entry.flags, muting: entry.muting) %>
51
+ </li>
52
+ <% end %>
53
+ </ul>
54
+ </section>
55
+ <% end %>
56
+ </div>
57
+ <% end %>
58
+ </div>
@@ -0,0 +1,53 @@
1
+ <%# A set's row on the list: its Resources, what they allow, and what narrows them (Admin::SetSummaries). %>
2
+ <span role="cell" class="pf-stack pf-stack--tight">
3
+ <span class="pf-set-count pf-tabular"><%= summary.resources %></span>
4
+ <% if model_count >= summary.resources && model_count.positive? %>
5
+ <span class="pf-fs-12 pf-text-3"><%= t('.of_models', count: model_count) %></span>
6
+ <%= pf_bar(summary.resources, model_count) %>
7
+ <% end %>
8
+ <% if summary.inactive.positive? %>
9
+ <span class="pf-fs-12 pf-text-3"><%= t('.inactive', count: summary.inactive) %></span>
10
+ <% end %>
11
+ </span>
12
+ <span role="cell" class="pf-stack pf-stack--tight">
13
+ <%= pf_access_profile(summary) %>
14
+ <% if summary.resources.positive? %>
15
+ <%= pf_access_counts(summary) %>
16
+ <% if !summary.muting && summary.flags[:view_all].positive? %>
17
+ <% lines = if summary.every_row? && summary.flags[:modify_all] == summary.resources
18
+ [t('.view_modify_all_every')]
19
+ else
20
+ [t('.view_all', count: summary.flags[:view_all]),
21
+ (t('.modify_all', count: summary.flags[:modify_all]) if summary.flags[:modify_all].positive?)].compact
22
+ end %>
23
+ <%= pf_overview_link set, safe_join(lines.map { |line| content_tag(:span, "+ #{line}") }),
24
+ { view: 'resources', only: PermissionForge::Admin::SetOverview::VIEW_ALL },
25
+ class: 'pf-narrow-link pf-fs-12 pf-text-grant', described: true %>
26
+ <% end %>
27
+ <% end %>
28
+ </span>
29
+ <span role="cell" class="pf-stack pf-stack--tight pf-fs-13">
30
+ <% narrowed = PermissionForge::Admin::SetOverview::NARROWED %>
31
+ <% if summary.muting %>
32
+ <% if summary.hidden.positive? %>
33
+ <%= pf_overview_link set, pf_narrow_text(t('.hidden', count: summary.hidden), summary.hidden_resources), { view: 'resources', only: narrowed }, class: 'pf-narrow-link', described: true %>
34
+ <% end %>
35
+ <% if summary.masked.positive? %>
36
+ <%= pf_overview_link set, pf_narrow_text(t('.force_masked', count: summary.masked), summary.masked_resources), { view: 'resources', only: narrowed }, class: 'pf-narrow-link', described: true %>
37
+ <% end %>
38
+ <% if summary.hidden.zero? && summary.masked.zero? %><span class="pf-text-3">—</span><% end %>
39
+ <% else %>
40
+ <% if summary.rules.positive? %>
41
+ <%= pf_overview_link set, pf_narrow_text(t('.rules', count: summary.rules), summary.rule_resources), { view: 'resources', only: narrowed }, class: 'pf-narrow-link', described: true %>
42
+ <% end %>
43
+ <% if summary.ignored_rules.positive? %>
44
+ <span class="pf-fs-12 pf-text-warn"><%= t('.ignored', count: summary.ignored_rules) %></span>
45
+ <% end %>
46
+ <% if summary.masked.positive? %>
47
+ <%= pf_overview_link set, pf_narrow_text(t('.masked', count: summary.masked), summary.masked_resources), { view: 'resources', only: narrowed }, class: 'pf-narrow-link pf-text-mask', described: true %>
48
+ <% end %>
49
+ <% if summary.rules.zero? && summary.masked.zero? %>
50
+ <span class="pf-text-3"><%= summary.every_row? ? t('.every_row') : '—' %></span>
51
+ <% end %>
52
+ <% end %>
53
+ </span>
@@ -0,0 +1,14 @@
1
+ <%# Under a set's name on the list: the Resources the search matched, and the links that open the set's Resources in place. %>
2
+ <% if matches.any? %>
3
+ <% names = matches.first(3).map { |entry| content_tag(:code, pf_resource_label(entry.name), class: 'pf-mono-key') } %>
4
+ <% names << t('.more', count: matches.size - 3) if matches.size > 3 %>
5
+ <span class="pf-fs-12 pf-text-2"><%= pf_t_markup(resources: pf_markup_sentence(names)) { |held| t('.includes', **held) } %></span>
6
+ <% end %>
7
+ <% if summary.entries.any? %>
8
+ <span class="pf-overview-links pf-fs-13">
9
+ <%= pf_overview_link set, t('.show_groups', count: summary.groups), { view: 'groups' }, hide: t('.hide_groups'), described: true %>
10
+ <%= pf_overview_link set, t('.show_resources', count: summary.entries.size), { view: 'resources' }, hide: t('.hide_resources'), described: true %>
11
+ </span>
12
+ <% else %>
13
+ <span class="pf-fs-12 pf-text-3"><%= t('.no_resources') %></span>
14
+ <% end %>
@@ -12,7 +12,8 @@
12
12
 
13
13
  <%= pf_help_banner('permission_sets', term: t('.help_term'), text: t('.help_text')) %>
14
14
 
15
- <% if @total.zero? %>
15
+ <% list = @list %>
16
+ <% if list.total.zero? %>
16
17
  <section class="pf-card">
17
18
  <div class="pf-empty">
18
19
  <h2 class="pf-h2"><%= t('.empty_title') %></h2>
@@ -23,41 +24,46 @@
23
24
  <% else %>
24
25
  <div class="pf-stack">
25
26
  <%= form_with url: permission_forge.permission_sets_path, method: :get, role: 'search' do %>
26
- <input type="hidden" name="filter" value="<%= @filter %>">
27
+ <input type="hidden" name="filter" value="<%= list.filter %>">
27
28
  <label class="pf-sr-only" for="pf-sets-q"><%= t('.search') %></label>
28
- <input id="pf-sets-q" class="pf-input" type="search" name="q" value="<%= @query %>" placeholder="<%= t('.search') %>"
29
+ <input id="pf-sets-q" class="pf-input" type="search" name="q" value="<%= list.query %>" placeholder="<%= t('.search') %>"
29
30
  autocomplete="off" data-pf-live="pf-sets-results">
30
31
  <% end %>
31
32
  </div>
32
33
  <div id="pf-sets-results" class="pf-stack pf-stack--loose">
33
34
  <div class="pf-filters" role="group" aria-label="<%= t('.filter_label') %>">
34
- <% PermissionForge::PermissionSetsController::FILTERS.each do |filter| %>
35
- <%= pf_filter_chip t(".filters.#{filter}"), permission_forge.permission_sets_path(q: @query.presence, filter: filter),
36
- selected: @filter == filter, count: @counts[filter] %>
35
+ <% counts = list.counts %>
36
+ <% PermissionForge::Admin::PermissionSetList::FILTERS.each do |filter| %>
37
+ <%= pf_filter_chip t(".filters.#{filter}"), permission_forge.permission_sets_path(q: list.query.presence, filter: filter),
38
+ selected: list.filter == filter, count: counts[filter] %>
37
39
  <% end %>
38
40
  </div>
39
41
  <%= pf_scroll_frame('aria-label': t('permission_forge.nav.permission_sets'), class: 'pf-card') do %>
40
42
  <div class="pf-table pf-table--sets" role="table" aria-label="<%= t('permission_forge.nav.permission_sets') %>">
41
43
  <div class="pf-table__head" role="row">
42
44
  <span role="columnheader"><%= t('.columns.set') %></span>
45
+ <span role="columnheader"><%= t('.columns.resources') %></span>
46
+ <span role="columnheader"><%= t('.columns.access') %></span>
47
+ <span role="columnheader"><%= t('.columns.narrowed') %></span>
43
48
  <span role="columnheader"><%= t('.columns.people') %></span>
44
49
  <span role="columnheader"><%= t('.columns.status') %></span>
45
50
  <span role="columnheader"><%= t('.columns.group') %></span>
46
51
  <span role="columnheader"><span class="pf-sr-only"><%= t('.columns.actions') %></span></span>
47
52
  </div>
48
- <% @permission_sets.each do |set| %>
49
- <div class="pf-table__row" role="row">
53
+ <% sets = list.sets %>
54
+ <% sets.each do |set| %>
55
+ <% summary = list.summary(set) %>
56
+ <div class="pf-table__row" role="row" id="pf-set-<%= set.id %>">
50
57
  <span role="cell" class="pf-stack pf-stack--tight">
51
58
  <span class="pf-row pf-row--tight">
52
- <%= link_to pf_record_name(set), permission_forge.permission_set_path(set), class: 'pf-fw-600' %>
59
+ <%= link_to pf_record_name(set), permission_forge.permission_set_path(set), class: 'pf-fw-600', id: pf_set_name_id(set) %>
53
60
  <%= pf_set_badges(set) %>
54
61
  </span>
55
62
  <% if set.description.present? %><span class="pf-fs-13 pf-text-2" data-pf-host-data><%= set.description %></span><% end %>
56
- <% if set.resources.any? %>
57
- <span class="pf-mono-key pf-fs-11"><%= set.resources.map(&:name).join(' · ') %></span>
58
- <% end %>
63
+ <%= render 'set_summary_links', set: set, summary: summary, matches: list.matching(set) %>
59
64
  </span>
60
- <span role="cell" class="pf-tabular"><%= @people_counts.fetch(set.id, 0) %></span>
65
+ <%= render 'set_summary_cells', set: set, summary: summary, model_count: list.model_count %>
66
+ <span role="cell" class="pf-tabular"><%= list.people_counts.fetch(set.id, 0) %></span>
61
67
  <span role="cell" class="pf-fs-13">
62
68
  <% if set.is_active %>
63
69
  <span class="pf-text-grant">● <%= t('permission_forge.shared.active') %></span>
@@ -75,7 +81,7 @@
75
81
  </div>
76
82
  <% end %>
77
83
  </div>
78
- <% if @permission_sets.empty? %>
84
+ <% if sets.empty? %>
79
85
  <p class="pf-empty"><%= t('.no_match') %></p>
80
86
  <% end %>
81
87
  <% end %>
@@ -0,0 +1,24 @@
1
+ <%# One set's Resources by model family or one by one (Admin::SetOverview): a page, and the fragment the list opens in place. %>
2
+ <% set = @permission_set %>
3
+ <% title = t(".title.#{@overview.view}", name: pf_record_name(set)) %>
4
+ <% content_for :pf_title, title %>
5
+ <% if pf_fragment? %>
6
+ <%= render 'overview_body', set: set, overview: @overview %>
7
+ <% else %>
8
+ <%= pf_breadcrumb([t('permission_forge.nav.permission_sets'), permission_forge.permission_sets_path],
9
+ [pf_record_name(set), permission_forge.permission_set_path(set)], title) %>
10
+ <div class="pf-page-header">
11
+ <div class="pf-page-header__text">
12
+ <h1 class="pf-h1"><%= title %></h1>
13
+ <p class="pf-subtitle"><%= t('.subtitle') %></p>
14
+ </div>
15
+ </div>
16
+ <div class="pf-filters" role="group" aria-label="<%= t('.views_label') %>">
17
+ <% PermissionForge::Admin::SetOverview::VIEWS.each do |view| %>
18
+ <%= pf_filter_chip t(".views.#{view}"), permission_forge.overview_permission_set_path(set, view: view), selected: @overview.view == view %>
19
+ <% end %>
20
+ </div>
21
+ <div class="pf-card"><div class="pf-card__body">
22
+ <%= render 'overview_body', set: set, overview: @overview %>
23
+ </div></div>
24
+ <% end %>
@@ -0,0 +1,2 @@
1
+ <%# The audit log cannot be read (no audit table, or recording is off and there is none): the reason, in place of the timeline. %>
2
+ <%= render 'permission_forge/shared/audit_off_note', problem: PermissionForge::Admin::AuditLog.recording_problem || :missing_table %>
@@ -11,6 +11,10 @@ en:
11
11
  they are refused while it is unset and config.api_require_authorization
12
12
  is on
13
13
  assignment_not_authorized: Assignment not authorized
14
+ audit_unavailable_missing: The audit log is not set up because its table does
15
+ not exist. Run bin/rails generate permission_forge:upgrade and migrate.
16
+ audit_unavailable_off: The audit log is not available because audit events
17
+ are turned off (audit_events = false) and there is no audit table.
14
18
  body_unreadable: The request body could not be read. Send valid JSON with
15
19
  Content-Type application/json.
16
20
  boolean_invalid: must be true or false
@@ -1173,9 +1177,12 @@ en:
1173
1177
  name: Name
1174
1178
  index:
1175
1179
  columns:
1180
+ access: Access
1176
1181
  actions: Actions
1177
1182
  group: Group
1183
+ narrowed: Narrowed by
1178
1184
  people: People
1185
+ resources: Resources
1179
1186
  set: Permission Set
1180
1187
  status: Status
1181
1188
  duplicate_aria: Duplicate %{name}
@@ -1220,6 +1227,29 @@ en:
1220
1227
  start_from_muting: Start from
1221
1228
  title: New Permission Set
1222
1229
  type: What should this set do?
1230
+ overview:
1231
+ no_family: Other models
1232
+ subtitle: What this set allows on each Resource, by model family.
1233
+ title:
1234
+ groups: Model groups in %{name}
1235
+ resources: Resources in %{name}
1236
+ views:
1237
+ groups: Model groups
1238
+ resources: Resources
1239
+ views_label: Show
1240
+ overview_body:
1241
+ empty: This set has no Resources yet.
1242
+ groups_hint: The model groups in this set, by namespace. Pick one to see its
1243
+ Resources.
1244
+ legend: A dot (·) is a flag not granted.
1245
+ legend_muting: A lit letter is access this set takes away.
1246
+ none_match: No Resource of this set matches this view.
1247
+ only_family: Showing %{family} only.
1248
+ only_narrowed: Showing the Resources with row rules or masked fields.
1249
+ only_view_all: 'Showing the Resources with View All: their row rules are skipped.'
1250
+ show_all:
1251
+ one: Show the %{count} Resource
1252
+ other: Show all %{count} Resources
1223
1253
  records_summary:
1224
1254
  ignored:
1225
1255
  one: "%{count} rule ignored"
@@ -1256,6 +1286,50 @@ en:
1256
1286
  title:
1257
1287
  one: Review %{count} change
1258
1288
  other: Review %{count} changes
1289
+ set_summary_cells:
1290
+ every_row: Sees every row
1291
+ force_masked:
1292
+ one: "•• %{count} force-masked field"
1293
+ other: "•• %{count} force-masked fields"
1294
+ hidden:
1295
+ one: "⊘ %{count} hidden field"
1296
+ other: "⊘ %{count} hidden fields"
1297
+ ignored:
1298
+ one: "⚠ %{count} rule ignored under View All"
1299
+ other: "⚠ %{count} rules ignored under View All"
1300
+ inactive:
1301
+ one: "+ %{count} turned off"
1302
+ other: "+ %{count} turned off"
1303
+ masked:
1304
+ one: "•• %{count} masked field"
1305
+ other: "•• %{count} masked fields"
1306
+ modify_all:
1307
+ one: Modify All on %{count} Resource
1308
+ other: Modify All on %{count} Resources
1309
+ of_models:
1310
+ one: of %{count} model
1311
+ other: of %{count} models
1312
+ rules:
1313
+ one: "⛉ %{count} row rule"
1314
+ other: "⛉ %{count} row rules"
1315
+ view_all:
1316
+ one: View All on %{count} Resource
1317
+ other: View All on %{count} Resources
1318
+ view_modify_all_every: View All and Modify All on every Resource
1319
+ set_summary_links:
1320
+ hide_groups: Hide model groups
1321
+ hide_resources: Hide Resources
1322
+ includes: Includes %{resources}
1323
+ more:
1324
+ one: "%{count} more"
1325
+ other: "%{count} more"
1326
+ no_resources: No Resources yet
1327
+ show_groups:
1328
+ one: Show %{count} model group
1329
+ other: Show %{count} model groups
1330
+ show_resources:
1331
+ one: Show %{count} Resource
1332
+ other: Show %{count} Resources
1259
1333
  show:
1260
1334
  and_more:
1261
1335
  one: "%{count} more"
@@ -1272,6 +1346,41 @@ en:
1272
1346
  conditions: Conditions
1273
1347
  resources: Resources
1274
1348
  tabs_label: Permission Set sections
1349
+ summary:
1350
+ flag_count: "%{flag}: %{count} of %{total}"
1351
+ initials:
1352
+ create_access: C
1353
+ delete_access: D
1354
+ edit_access: E
1355
+ modify_all: M
1356
+ read_access: R
1357
+ view_all: V
1358
+ mark_titles:
1359
+ hidden:
1360
+ one: "%{count} hidden field"
1361
+ other: "%{count} hidden fields"
1362
+ ignored:
1363
+ one: "%{count} row rule View All bypasses"
1364
+ other: "%{count} row rules View All bypasses"
1365
+ masked:
1366
+ one: "%{count} masked field"
1367
+ other: "%{count} masked fields"
1368
+ rules:
1369
+ one: "%{count} row rule"
1370
+ other: "%{count} row rules"
1371
+ view_all:
1372
+ one: View All on %{count} Resource
1373
+ other: View All on %{count} Resources
1374
+ marks:
1375
+ hidden: "⊘ %{count}"
1376
+ ignored: "⛉ %{count} ignored"
1377
+ masked: "•• %{count}"
1378
+ rules: "⛉ %{count}"
1379
+ view_all: V %{count}
1380
+ no_flags: Nothing
1381
+ on_resources:
1382
+ one: on %{count} Resource
1383
+ other: on %{count} Resources
1275
1384
  resource_actions:
1276
1385
  add_select:
1277
1386
  block: Add and block
@@ -2390,6 +2499,11 @@ en:
2390
2499
  search_people: Name or email
2391
2500
  setting: Setting
2392
2501
  states:
2502
+ access_profile:
2503
+ full: Full access
2504
+ mixed: Some changes
2505
+ none: No access
2506
+ takes_away: Takes access away
2393
2507
  actor:
2394
2508
  api: API client
2395
2509
  basic_auth: Password prompt
@@ -9,6 +9,11 @@ mk:
9
9
  assignment_authorization_missing: Доделувањата преку API бараат config.api_assignment_authorization;
10
10
  се одбиваат додека не е поставено и config.api_require_authorization е вклучено
11
11
  assignment_not_authorized: Доделувањето не е авторизирано
12
+ audit_unavailable_missing: Ревизиската евиденција не е поставена бидејќи нејзината
13
+ табела не постои. Извршете bin/rails generate permission_forge:upgrade и
14
+ миграциите.
15
+ audit_unavailable_off: Ревизиската евиденција не е достапна бидејќи ревизиските
16
+ настани се исклучени (audit_events = false) и нема ревизиска табела.
12
17
  body_unreadable: Содржината на барањето не може да се прочита. Испратете валиден
13
18
  JSON со Content-Type application/json.
14
19
  boolean_invalid: мора да биде true или false
@@ -1190,9 +1195,12 @@ mk:
1190
1195
  name: Име
1191
1196
  index:
1192
1197
  columns:
1198
+ access: Пристап
1193
1199
  actions: Акции
1194
1200
  group: Група
1201
+ narrowed: Ограничено со
1195
1202
  people: Корисници
1203
+ resources: Ресурси
1196
1204
  set: Сет на дозволи
1197
1205
  status: Статус
1198
1206
  duplicate_aria: Дуплирај %{name}
@@ -1238,6 +1246,31 @@ mk:
1238
1246
  start_from_muting: Почни од
1239
1247
  title: Нов сет на дозволи
1240
1248
  type: Што треба да прави овој сет?
1249
+ overview:
1250
+ no_family: Други модели
1251
+ subtitle: Што дозволува овој сет на секој ресурс, по група модели.
1252
+ title:
1253
+ groups: Групи модели во %{name}
1254
+ resources: Ресурси во %{name}
1255
+ views:
1256
+ groups: Групи модели
1257
+ resources: Ресурси
1258
+ views_label: Прикажи
1259
+ overview_body:
1260
+ empty: Овој сет сè уште нема ресурси.
1261
+ groups_hint: Групите модели во овој сет, по именски простор. Изберете една
1262
+ за да ги видите нејзините ресурси.
1263
+ legend: Точка (·) значи дека дозволата не е дадена.
1264
+ legend_muting: Истакната буква е пристап што овој сет го одзема.
1265
+ none_match: Ниеден ресурс од овој сет не одговара на овој приказ.
1266
+ only_family: Се прикажува само %{family}.
1267
+ only_narrowed: Се прикажуваат ресурсите со правила за записи или маскирани
1268
+ полиња.
1269
+ only_view_all: 'Се прикажуваат ресурсите со „Прикажи ги сите“: нивните правила
1270
+ за записи се прескокнуваат.'
1271
+ show_all:
1272
+ one: Прикажи го %{count} ресурс
1273
+ other: Прикажи ги сите %{count} ресурси
1241
1274
  records_summary:
1242
1275
  ignored:
1243
1276
  one: "%{count} правило се игнорира"
@@ -1274,6 +1307,50 @@ mk:
1274
1307
  title:
1275
1308
  one: Прегледај %{count} промена
1276
1309
  other: Прегледај %{count} промени
1310
+ set_summary_cells:
1311
+ every_row: Ги гледа сите записи
1312
+ force_masked:
1313
+ one: "•• %{count} присилно маскирано поле"
1314
+ other: "•• %{count} присилно маскирани полиња"
1315
+ hidden:
1316
+ one: "⊘ %{count} скриено поле"
1317
+ other: "⊘ %{count} скриени полиња"
1318
+ ignored:
1319
+ one: "⚠ %{count} правило се игнорира поради „Прикажи ги сите“"
1320
+ other: "⚠ %{count} правила се игнорираат поради „Прикажи ги сите“"
1321
+ inactive:
1322
+ one: "+ %{count} исклучен"
1323
+ other: "+ %{count} исклучени"
1324
+ masked:
1325
+ one: "•• %{count} маскирано поле"
1326
+ other: "•• %{count} маскирани полиња"
1327
+ modify_all:
1328
+ one: Уреди ги сите на %{count} ресурс
1329
+ other: Уреди ги сите на %{count} ресурси
1330
+ of_models:
1331
+ one: од %{count} модел
1332
+ other: од %{count} модели
1333
+ rules:
1334
+ one: "⛉ %{count} правило за записи"
1335
+ other: "⛉ %{count} правила за записи"
1336
+ view_all:
1337
+ one: Прикажи ги сите на %{count} ресурс
1338
+ other: Прикажи ги сите на %{count} ресурси
1339
+ view_modify_all_every: Прикажи ги сите и Уреди ги сите на секој ресурс
1340
+ set_summary_links:
1341
+ hide_groups: Скриј ги групите модели
1342
+ hide_resources: Скриј ги ресурсите
1343
+ includes: Вклучува %{resources}
1344
+ more:
1345
+ one: уште %{count}
1346
+ other: уште %{count}
1347
+ no_resources: Сè уште нема ресурси
1348
+ show_groups:
1349
+ one: Прикажи %{count} група модели
1350
+ other: Прикажи %{count} групи модели
1351
+ show_resources:
1352
+ one: Прикажи %{count} ресурс
1353
+ other: Прикажи %{count} ресурси
1277
1354
  show:
1278
1355
  and_more:
1279
1356
  one: уште %{count}
@@ -1290,6 +1367,41 @@ mk:
1290
1367
  conditions: Услови
1291
1368
  resources: Ресурси
1292
1369
  tabs_label: Делови на сетот на дозволи
1370
+ summary:
1371
+ flag_count: "%{flag}: %{count} од %{total}"
1372
+ initials:
1373
+ create_access: К
1374
+ delete_access: Б
1375
+ edit_access: У
1376
+ modify_all: УС
1377
+ read_access: Ч
1378
+ view_all: ПС
1379
+ mark_titles:
1380
+ hidden:
1381
+ one: "%{count} скриено поле"
1382
+ other: "%{count} скриени полиња"
1383
+ ignored:
1384
+ one: "%{count} правило што „Прикажи ги сите“ го прескокнува"
1385
+ other: "%{count} правила што „Прикажи ги сите“ ги прескокнува"
1386
+ masked:
1387
+ one: "%{count} маскирано поле"
1388
+ other: "%{count} маскирани полиња"
1389
+ rules:
1390
+ one: "%{count} правило за записи"
1391
+ other: "%{count} правила за записи"
1392
+ view_all:
1393
+ one: Прикажи ги сите на %{count} ресурс
1394
+ other: Прикажи ги сите на %{count} ресурси
1395
+ marks:
1396
+ hidden: "⊘ %{count}"
1397
+ ignored: "⛉ %{count} игнорирани"
1398
+ masked: "•• %{count}"
1399
+ rules: "⛉ %{count}"
1400
+ view_all: ПС %{count}
1401
+ no_flags: Ништо
1402
+ on_resources:
1403
+ one: на %{count} ресурс
1404
+ other: на %{count} ресурси
1293
1405
  resource_actions:
1294
1406
  add_select:
1295
1407
  block: Додади и блокирај
@@ -2449,6 +2561,11 @@ mk:
2449
2561
  search_people: Име или е-пошта
2450
2562
  setting: Поставка
2451
2563
  states:
2564
+ access_profile:
2565
+ full: Целосен пристап
2566
+ mixed: Некои промени
2567
+ none: Без пристап
2568
+ takes_away: Одзема пристап
2452
2569
  actor:
2453
2570
  api: API клиент
2454
2571
  basic_auth: Прозорец за лозинка