mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
This reverts commit 1f04db79f7
.
This commit is contained in:
parent
1d9d905497
commit
b1263ad568
@ -652,9 +652,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
|
||||
|
||||
# slc perms
|
||||
slice_add_perm = security_manager.can_access("can_add", "SliceModelView")
|
||||
slice_overwrite_perm = (
|
||||
security_manager.can_access("can_edit", "SliceModelView") if slc else False
|
||||
)
|
||||
slice_overwrite_perm = is_owner(slc, g.user) if slc else False
|
||||
slice_download_perm = security_manager.can_access(
|
||||
"can_download", "SliceModelView"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user