Skip to content

Commit c83f1b1

Browse files
committed
chore: set permission to styles service
1 parent 9312275 commit c83f1b1

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

api/config/default.cjs

+3
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ module.exports = {
263263
},
264264
projects: {
265265

266+
},
267+
styles: {
268+
266269
},
267270
cesium: {
268271
token: process.env.CESIUM_TOKEN

common/permissions.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export function defineUserAbilities (subject, can, cannot, app) {
1818
can('all', 'features')
1919
// Can authorize users on specific layers
2020
can(['create', 'remove'], 'authorisations')
21+
// Can manage styles
22+
can('all', 'styles')
2123
}
2224
}
2325
if (subject.projects) {

config/default.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const leftPane = {
4545
},
4646
{
4747
id: 'style-editor', icon: 'las la-paint-brush', label: 'KStyleManager.MANAGER', renderer: 'item', dialog: {
48-
component: 'app/KStyleManager', title: 'KStyleManager.MANAGER', okAction: 'CLOSE'
48+
component: 'tools/KStyleManager', title: 'KStyleManager.MANAGER', okAction: 'CLOSE'
4949
}
5050
},
5151
{

0 commit comments

Comments
 (0)