Skip to content

Commit 2d7b291

Browse files
committed
fixed empty allowed users
1 parent 132c28e commit 2d7b291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ckanext/restricted/action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def _restricted_resource_list_hide_fields(context, resource_list):
146146
# hide partially other allowed user_names (keep own)
147147
allowed_users = []
148148
for user in restricted_dict.get("allowed_users"):
149-
if len(user.strip()))>0:
149+
if len(user.strip())>0:
150150
if user_name == user:
151151
allowed_users += [user_name]
152152
else:

0 commit comments

Comments
 (0)