mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-11 10:13:55 +00:00
Fixed duplicated departments issue
You will now receive the right permissions for the right departments without any departments messing or getting duplicated.
This commit is contained in:
1 parent
be2b6c4770
commit
d5040e06b7
1 file changed
+6
-4
@@ -112,9 +112,11 @@ $(function() {
|
||||
}
|
||||
|
||||
if (item.type === "givePerms") {
|
||||
$('.departments').append($('<option>', {
|
||||
text: item.deptRole
|
||||
}));
|
||||
JSON.parse(item.deptRoles).forEach((dept) => {
|
||||
$('.departments').append($('<option>', {
|
||||
text: dept
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
if (item.type === "aop") {
|
||||
@@ -264,4 +266,4 @@ $(function() {
|
||||
$.post(`https://${GetParentResourceName()}/exitGame`);
|
||||
return;
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user