Skip to content

Commit

Permalink
fix cfg roles list name
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaetanbrl committed Sep 25, 2023
1 parent 71fb923 commit 8053150
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@
"cfg": {
"icon": "tint",
"id": "carteaux",
"role": "SV_PWRS_CARTEAUX_CAR",
"editingAllowedRoles": ["SV_PWRS_CARTEAUX_CAR"],
"api": "http://localhost:8081/files",
"statusValues": {"values":["public","private"]},
"fields": ["label", "", "comment", "status", "dateDoc"],
Expand Down
2 changes: 1 addition & 1 deletion js/extension/stateManagement/selector/selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const getUploadVisibility = (state) =>
export const getAuthLevel = (state) => {
const groups = userGroupSecuritySelector(state) ?? [];
const groupNames = groups.map(({ groupName }) => groupName);
let allowedRoles = getPluginCfg(state)?.allowedRoles;
let allowedRoles = getPluginCfg(state)?.editingAllowedRoles;
if (isEmpty(allowedRoles)) {
allowedRoles = ["MAPSTORE_ADMIN"];
}
Expand Down

0 comments on commit 8053150

Please sign in to comment.