Skip to content
Snippets Groups Projects
Commit bd0f0ccd authored by Dean Lovett's avatar Dean Lovett
Browse files

fix: minor tweak to comments and updated gemfile

parent 41cbcf13
No related branches found
No related tags found
No related merge requests found
Pipeline #24165 passed
......@@ -33,14 +33,14 @@ GEM
zeitwerk (~> 2.3)
ast (2.4.2)
builder (3.2.4)
concurrent-ruby (1.1.9)
concurrent-ruby (1.1.10)
crass (1.0.6)
diff-lcs (1.4.4)
erubi (1.10.0)
generator_spec (0.9.4)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
i18n (1.8.11)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
ibsciss-middleware (0.4.2)
loofah (2.12.0)
......@@ -48,14 +48,14 @@ GEM
nokogiri (>= 1.5.9)
method_source (1.0.0)
mini_portile2 (2.6.1)
minitest (5.14.4)
minitest (5.15.0)
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
racc (~> 1.4)
parallel (1.21.0)
parser (3.0.2.0)
ast (~> 2.4.1)
pundit (2.1.1)
pundit (2.2.0)
activesupport (>= 3.0.0)
racc (1.6.0)
rack (2.2.3)
......@@ -111,7 +111,7 @@ GEM
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
unicode-display_width (2.1.0)
zeitwerk (2.5.1)
zeitwerk (2.5.4)
PLATFORMS
ruby
......
......@@ -54,7 +54,7 @@ module NexusCqrs
def for_user_on_entity(permission_model, entity_id)
return [] if @user_id.nil?
# retrieve entity-specific permissions from DB and map to hash
# retrieve entity-specific permissions from cached user permissions and map to hash
entity_permissions = if cached_permissions(permission_model).key?(entity_id)
cached_permissions(permission_model)[entity_id]
.map { |p| { global: false, key: p } }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment