Commit 18525967 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

add_PROJECT privilege changed to MANAGE_PROJECT privilege when checking if...

add_PROJECT privilege changed to MANAGE_PROJECT privilege when checking if user can edit/remove project
parent 21992d3e
Pipeline #8998 passed with stage
in 11 minutes and 5 seconds
minerva (12.2.0~beta.2) unstable; urgency=medium
* Bug fix: editing/removing project requires Map Management privilege (#681)
* Bug fix: when removeAllListeners is called list of registered listeners is
cleaned (#687)
* Bug fix: when plugin is removed the html elements associated with it are
......
......@@ -237,7 +237,7 @@ MapsAdminPanel.prototype.projectToTableRow = function (project, row, user) {
row[4] = status;
var disabled = " disabled ";
if (user.hasPrivilege(self.getConfiguration().getPrivilegeType(PrivilegeType.ADD_MAP))) {
if (user.hasPrivilege(self.getConfiguration().getPrivilegeType(PrivilegeType.PROJECT_MANAGEMENT))) {
disabled = "";
}
row[5] = "<button name='showEditDialog' data='" + project.getProjectId() + "'" + disabled + "><i class='fa fa-edit' style='font-size:17px'></i></button>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment