Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
xrm
basic
Commits
e746fb5b
Commit
e746fb5b
authored
5 years ago
by
daniel
Browse files
Options
Downloads
Patches
Plain Diff
#1045205 - Fixed multiple role allocation of one and the same role to one user.
parent
7b45cab6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entity/EmployeeRole_entity/entityfields/roles/children/excluderoles_param/valueProcess.js
+11
-1
11 additions, 1 deletion
...yfields/roles/children/excluderoles_param/valueProcess.js
with
11 additions
and
1 deletion
entity/EmployeeRole_entity/entityfields/roles/children/excluderoles_param/valueProcess.js
+
11
−
1
View file @
e746fb5b
import
(
"
system.tools
"
);
import
(
"
system.vars
"
);
import
(
"
system.result
"
);
result
.
string
(
JSON
.
stringify
([
"
INTERNAL_EVERYONE
"
,
"
INTERNAL_GROUPWARE
"
,
"
INTERNAL_SNMP
"
,
"
INTERNAL_DESIGNER
"
,
"
INTERNAL_TECHNICAL
"
]));
\ No newline at end of file
var
userTitle
=
vars
.
exists
(
"
$param.UserTitle_param
"
)
&&
vars
.
get
(
"
$param.UserTitle_param
"
);
var
excludeRolesArray
=
[
"
INTERNAL_EVERYONE
"
,
"
INTERNAL_GROUPWARE
"
,
"
INTERNAL_SNMP
"
,
"
INTERNAL_DESIGNER
"
,
"
INTERNAL_TECHNICAL
"
];
var
userRoles
=
tools
.
getRoles
(
userTitle
);
for
(
i
=
0
;
i
<
userRoles
.
length
;
i
++
)
{
excludeRolesArray
.
push
(
userRoles
[
i
]);
}
result
.
string
(
JSON
.
stringify
(
excludeRolesArray
));
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Johannes Goderbauer
@j.goderbauer
mentioned in commit
ca2bdd02
·
5 years ago
mentioned in commit
ca2bdd02
mentioned in commit ca2bdd029c912b349457c7e3e620cddb4d323dda
Toggle commit list
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