Skip to content

Commit

Permalink
Fixes #15904: \"add global param\" button still available for read-on…
Browse files Browse the repository at this point in the history
…ly role
  • Loading branch information
fanf committed Oct 9, 2019
1 parent 9baaeb0 commit e8daf10
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ class ParameterManagement extends DispatchSnippet with Loggable {
} else NodeSeq.Empty)
}</div>
}) &
".createParameter *" #> ajaxButton("Create Global Parameter", () => showPopup(GlobalParamModAction.Create, None) , ("class","btn btn-success new-icon space-bottom space-top"))
".createParameter *" #> (if(CurrentUser.checkRights(AuthorizationType.Parameter.Write)) {
ajaxButton("Create Global Parameter", () => showPopup(GlobalParamModAction.Create, None) , ("class","btn btn-success new-icon space-bottom space-top"))
} else NodeSeq.Empty)
).apply(dataTableXml(gridName)) ++ Script(initJs)
}

Expand Down

0 comments on commit e8daf10

Please sign in to comment.