mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
fix is_owner check (#2985)
This commit is contained in:
@@ -78,7 +78,7 @@ def json_success(json_msg, status=200):
|
||||
|
||||
def is_owner(obj, user):
|
||||
""" Check if user is owner of the slice """
|
||||
return obj and obj.owners and user in obj.owners
|
||||
return obj and user in obj.owners
|
||||
|
||||
|
||||
def check_ownership(obj, raise_if_false=True):
|
||||
|
||||
Reference in New Issue
Block a user