diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2018-07-18 07:47:13 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-07-18 07:47:13 +0300 |
commit | 105e007721b5c0ea12ff2596d8d82c721021fb4e (patch) | |
tree | 558162844ba663781fdf0ec691642f0dc453e94e /plugins/Morpheus | |
parent | 74334d8d0908910ed3cc4a9a918436d9f9ccc3f6 (diff) |
Introducing a new role "write" and possibility to define capabilities (#13163)
* started working on some ACL concept
* acl implementation
* add category
* small tweaks
* more tweaks
* more api methods and fixes
* cache capabilities
* various enhancements, fixes, tweaks
* more tweaks
* added more tests and fixed some bugs
* fix parameter
* make sure to be BC
* make sure to be BC
* fix some tests
* more apis, translations, changelog entry, ...
* update db
* correct error message
* fix capabilities were not detected in tests
* directly access provider
* fix and add test
* JS api to check capabilities, better structure for capabilities in tests
* add ability to inject permissions
* apply review changes
* fix test
Diffstat (limited to 'plugins/Morpheus')
-rw-r--r-- | plugins/Morpheus/templates/_jsGlobalVariables.twig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Morpheus/templates/_jsGlobalVariables.twig b/plugins/Morpheus/templates/_jsGlobalVariables.twig index 9acb9bebbb..f4aca47580 100644 --- a/plugins/Morpheus/templates/_jsGlobalVariables.twig +++ b/plugins/Morpheus/templates/_jsGlobalVariables.twig @@ -43,6 +43,7 @@ {% if language is defined %}piwik.language = "{{ language }}";{% endif %} piwik.hasSuperUserAccess = {{ hasSuperUserAccess|default(0)|e('js')}}; + piwik.userCapabilities = {{ userCapabilities|default([])|json_encode|raw }}; piwik.config = {}; {% if clientSideConfig is defined %} piwik.config = {{ clientSideConfig|json_encode|raw }}; |