mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 13:56:02 +01: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:
@@ -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