Skip to content

Commit

Permalink
Create map from dataset should be available if the user has add permi…
Browse files Browse the repository at this point in the history
…ssion and access to the resource (#608)
  • Loading branch information
luorlandini authored Nov 19, 2021
1 parent 301307d commit 9d5202e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,8 @@
"type": "link",
"href": "{'#/map/new?gn-dataset=' + (state('gnResourceData') || {}).pk}",
"labelId": "gnviewer.createMap",
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase')}"
"disableIf": "{( state('user') && !state('user').perms.includes('add_resource'))}"

},
{
"type": "divider",
Expand Down

0 comments on commit 9d5202e

Please sign in to comment.