Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Commit

Permalink
fixed empty allowed users
Browse files Browse the repository at this point in the history
  • Loading branch information
espona committed Jun 3, 2018
1 parent 132c28e commit 2d7b291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/restricted/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _restricted_resource_list_hide_fields(context, resource_list):
# hide partially other allowed user_names (keep own)
allowed_users = []
for user in restricted_dict.get("allowed_users"):
if len(user.strip()))>0:
if len(user.strip())>0:
if user_name == user:
allowed_users += [user_name]
else:
Expand Down

0 comments on commit 2d7b291

Please sign in to comment.