mistercrunch commented on code in PR #32770:
URL: https://github.com/apache/superset/pull/32770#discussion_r2005908060
##########
docs/docs/configuration/sql-templating.mdx:
##########
@@ -220,6 +220,21 @@ cache key by adding the following parameter to your Jinja
code:
{{ current_user_email(add_to_cache_keys=False) }}
```
+**Current User Roles**
+
+The `{{ current_user_roles() }}` macro returns the roles of the currently
logged in user.
Review Comment:
Given your implementation now, it seems more like "returns a
json-stringified array of roles for the logged in user".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]