fix wrong authorization logic

This commit is contained in:
kindly 2012-12-24 22:34:37 +00:00
parent 01dfda59b6
commit 7b6beb1470
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ def _get_sources_for_user(context,data_dict):
user_obj = User.get(user) user_obj = User.get(user)
# Sysadmins will get all sources # Sysadmins will get all sources
if user_obj and user_obj.sysadmin: if user_obj and not user_obj.sysadmin:
# This only applies to a non sysadmin user when using the # This only applies to a non sysadmin user when using the
# publisher auth profile. When using the default profile, # publisher auth profile. When using the default profile,
# normal users will never arrive at this point, but even if they # normal users will never arrive at this point, but even if they