Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project Forum
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
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Project Forum
Project Forum
Merge requests
!735
Fix registrar cannot invite employees
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Fix registrar cannot invite employees
388-company-registrars-cannot-invite-employees
into
development
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Fix registrar cannot invite employees
Taico Aerts
requested to merge
388-company-registrars-cannot-invite-employees
into
development
Jun 20, 2022
Overview
0
Commits
1
Pipelines
0
Changes
1
Closes
#388 (closed)
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
14cc7565
1 commit,
Jun 20, 2022
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
app/models/company.rb
+
1
−
1
View file @ 14cc7565
Edit in single-file editor
Open in Web IDE
Show full file
@@ -50,7 +50,7 @@ class Company < ApplicationRecord
# @param user [User] the user
# @return [Boolean] whether the given user is involved in (employee of) this company
def
involved?
(
user
)
user
.
has_any_role?
({
name: :registrar
,
re
c
ource:
self
},
user
.
has_any_role?
({
name: :registrar
,
re
s
ource:
self
},
{
name: :employee
,
resource:
self
},
{
name: :unconfirmed_employee
,
resource:
self
})
end
Loading