Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nexus_cqrs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
nexus_cqrs
Commits
bd0f0ccd
Commit
bd0f0ccd
authored
3 years ago
by
Dean Lovett
Browse files
Options
Downloads
Patches
Plain Diff
fix: minor tweak to comments and updated gemfile
parent
41cbcf13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#24165
passed
3 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Gemfile.lock
+5
-5
5 additions, 5 deletions
Gemfile.lock
lib/nexus_cqrs/auth/permission_provider.rb
+1
-1
1 addition, 1 deletion
lib/nexus_cqrs/auth/permission_provider.rb
with
6 additions
and
6 deletions
Gemfile.lock
+
5
−
5
View file @
bd0f0ccd
...
...
@@ -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.1
4.4
)
minitest (5.1
5.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
...
...
This diff is collapsed.
Click to expand it.
lib/nexus_cqrs/auth/permission_provider.rb
+
1
−
1
View file @
bd0f0ccd
...
...
@@ -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
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment