Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dashboard] anonymous users be not able to view dashboards. #14296

Open
3 tasks done
code-snail opened this issue Apr 22, 2021 · 6 comments
Open
3 tasks done

[dashboard] anonymous users be not able to view dashboards. #14296

code-snail opened this issue Apr 22, 2021 · 6 comments
Labels
authentication:access-control Rlated to access control #bug Bug report dashboard:security:access Related to the security access of the Dashboard

Comments

@code-snail
Copy link

code-snail commented Apr 22, 2021

anonymous users be not able to view dashboards.

Expected results

anonymous users be able to view dashboards.

Actual results

anonymous users be not able to view dashboards

Screenshots

image

How to reproduce the bug

  1. login with admin user and create dashboard
  2. logout admin
  3. access dashboard that create before
  4. See error

Environment

(please complete the following information):

  • superset version: Superset 0.999.0dev
  • python version: Python 3.7.9
  • node.js version: v14.16.0

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Add any other context about the problem here.

@code-snail code-snail added the #bug Bug report label Apr 22, 2021
@dpgaspar dpgaspar assigned dpgaspar and unassigned dpgaspar Apr 22, 2021
@dpgaspar
Copy link
Member

@code-snail I was able to reproduce the issue

@dpgaspar dpgaspar added authentication:access-control Rlated to access control dashboard:security:access Related to the security access of the Dashboard labels Apr 22, 2021
@zufolo441
Copy link

zufolo441 commented May 14, 2021

me too.... with git version as of today. in 1.0.1 it was working.
Screenshot_20210514_111202
ss

@zufolo441
Copy link

the problem is still present:
Uncaught TypeError: can't convert undefined to object
isUserAdmin findPermission.ts:39
canUserEditDashboard findPermission.ts:52
hydrateDashboard hydrate.js:325
createThunkMiddleware Redux
DashboardPage DashboardPage.tsx:70
commitHookEffectListMount react-dom.development.js:19765
commitPassiveHookEffects react-dom.development.js:19803
callCallback react-dom.development.js:189
invokeGuardedCallbackDev react-dom.development.js:238
invokeGuardedCallback react-dom.development.js:293
flushPassiveEffectsImpl react-dom.development.js:22885
unstable_runWithPriority scheduler.development.js:653
runWithPriority$1 react-dom.development.js:11062
flushPassiveEffects react-dom.development.js:22852
commitBeforeMutationEffects react-dom.development.js:22731
workLoop scheduler.development.js:597
flushWork scheduler.development.js:552
performWorkUntilDeadline scheduler.development.js:164
EventHandlerNonNull* scheduler.development.js:187
scheduler.development.js:857
node_modules vendors.ff448c0c.chunk.js:22005
webpack_require spa.ff448c0c.entry.js:85
index.js:6
node_modules vendors.ff448c0c.chunk.js:22017
webpack_require spa.ff448c0c.entry.js:85
react-dom.development.js:21
react-dom.development.js:25105
node_modules vendors.ff448c0c.chunk.js:21969
webpack_require spa.ff448c0c.entry.js:85
index.js:37
node_modules vendors.ff448c0c.chunk.js:21981
webpack_require spa.ff448c0c.entry.js:85
index.tsx:1
tsx spa.ff448c0c.entry.js:2539
webpack_require spa.ff448c0c.entry.js:85
5 spa.ff448c0c.entry.js:2576
webpack_require spa.ff448c0c.entry.js:85
checkDeferredModules spa.ff448c0c.entry.js:46
spa.ff448c0c.entry.js:250
spa.ff448c0c.entry.js:253
findPermission.ts:39

@stale
Copy link

stale bot commented May 1, 2022

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.

@stale stale bot added the inactive Inactive for >= 30 days label May 1, 2022
@albertojarabo
Copy link

albertojarabo commented Sep 27, 2023

I can't view dashboards with an anonymous user. If I assign the 'Public' role to AUTH_ROLE_PUBLIC (and copy all the permissions from the 'Admin' role to 'Public'), I can see everything except the Dashboards. However, if I assign the 'Admin' role to AUTH_ROLE_PUBLIC, I can also see the Dashboards with the anonymous user. The same happens if I use the variable PUBLIC_ROLE_LIKE.

@stale stale bot removed the inactive Inactive for >= 30 days label Sep 27, 2023
@rusackas
Copy link
Member

@dpgaspar this seems to have gone silent for upward of six months. Do you think this is an issue we want to keep open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authentication:access-control Rlated to access control #bug Bug report dashboard:security:access Related to the security access of the Dashboard
Projects
None yet
Development

No branches or pull requests

5 participants