Description
Currently, MS determines style editor permissions based on editingAllowedRoles and editingAllowedGroups. However, in applications like GeoNode, the permission structure differs. Therefore, a mechanism is required to set permissions for allowing or restricting style editing in downstream projects using the canEdit in StyleEditor plugin
export const canEditStyleSelector = (state) => {
...
- return isAllowed && _isSameOrigin;
+ return canEdit || (isAllowed && _isSameOrigin);
};
Other useful information
Description
Currently, MS determines style editor permissions based on
editingAllowedRolesandeditingAllowedGroups. However, in applications like GeoNode, the permission structure differs. Therefore, a mechanism is required to set permissions for allowing or restricting style editing in downstream projects using thecanEditin StyleEditor pluginexport const canEditStyleSelector = (state) => { ... - return isAllowed && _isSameOrigin; + return canEdit || (isAllowed && _isSameOrigin); };Other useful information