mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 14:26:03 +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") {
|
if (item.type === "givePerms") {
|
||||||
$('.departments').append($('<option>', {
|
JSON.parse(item.deptRoles).forEach((dept) => {
|
||||||
text: item.deptRole
|
$('.departments').append($('<option>', {
|
||||||
}));
|
text: dept
|
||||||
|
}));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.type === "aop") {
|
if (item.type === "aop") {
|
||||||
|
|||||||
Reference in New Issue
Block a user