You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/04/28 19:38:11 UTC

[GitHub] [incubator-superset] iamklaus opened a new issue #9674: Public Role

iamklaus opened a new issue #9674:
URL: https://github.com/apache/incubator-superset/issues/9674


   I followed the documentation to grant access via public role to unauthorized users. I have also set PUBLIC_ROLE_LIKE_GAMMA = True in the config file.
   
   Partly the access works, but superset gives the following message to the visitor:
   
   "An error occurred while fetching available CSS templates"
   
   Bug or missing configuration?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] commented on issue #9674: Public Role

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #9674:
URL: https://github.com/apache/incubator-superset/issues/9674#issuecomment-652836739


   This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue `.pinned` to prevent stale bot from closing the issue.
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] closed issue #9674: Public Role

Posted by GitBox <gi...@apache.org>.
stale[bot] closed issue #9674:
URL: https://github.com/apache/incubator-superset/issues/9674


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] aspedrosa commented on issue #9674: Public Role

Posted by GitBox <gi...@apache.org>.
aspedrosa commented on issue #9674:
URL: https://github.com/apache/incubator-superset/issues/9674#issuecomment-622455942


   @MarcusSorealheis 
   I think what @iamklaus is trying to do is to access dashboards without logging in.
   I have a similar/related issue. I'm not setting PUBLIC_ROLE_LIKE_GAMMA to True but I'm giving the necessary permissions to the public role so he can access a dashboard, however without success.
   
   I think the problem is on the method get_public_role of the SupersetSecurityManager [here](https://github.com/apache/incubator-superset/blob/master/superset/security/manager.py#L368) :point_down: 
   
   ```
   if not conf.get("PUBLIC_ROLE_LIKE_GAMMA", False):
       return None
   
   from superset import db
   
   return db.session.query(self.role_model).filter_by(name="Public").first()
   ```
   
   Shouldn't it be like this :point_down: ?
   ```
   from superset import db
   
   if conf.get("PUBLIC_ROLE_LIKE_GAMMA", False):
       return db.session.query(self.role_model).filter_by(name="Gamma").first()
   
   return db.session.query(self.role_model).filter_by(name="Public").first()
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] aspedrosa commented on issue #9674: Public Role

Posted by GitBox <gi...@apache.org>.
aspedrosa commented on issue #9674:
URL: https://github.com/apache/incubator-superset/issues/9674#issuecomment-667008677


   @iamklaus You have to also add the permission "can list on CssTemplateAsyncModelView"


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] MarcusSorealheis commented on issue #9674: Public Role

Posted by GitBox <gi...@apache.org>.
MarcusSorealheis commented on issue #9674:
URL: https://github.com/apache/incubator-superset/issues/9674#issuecomment-621306708


   Need a lot more info to reproduce


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org