Skip to content

Commit

Permalink
Corrected: list services fails when services are not all public.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Chjakiachvili committed Mar 12, 2018
1 parent 194bb4f commit 808a345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Version 1.1.9.x - 2018-03-10
- Added multi-site association allow returning site url prefix for jobs urls
- Test if job.client user has a 'site' property, in such case, retrieve domain name to generate Job / JobOutputs link
- [LOGGING] JobLogging: degraded mode, output to 'waves.errors' logger
- [Service list] Corrected: list services fails when services are not all public.


Version 1.1.8.x - 2018-02-10
Expand Down
2 changes: 1 addition & 1 deletion waves/wcore/models/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def available_for_user(self, user):
# TODO reuse manager function or use authorization dedicated class
if waves_settings.ALLOW_JOB_SUBMISSION is False or self.get_runner() is None:
return False
if self.status == self.SRV_PUBLIC or user.is_superuser():
if self.status == self.SRV_PUBLIC or user.is_superuser:
return True
# RULES to set if user can access submissions
return ((self.status == self.SRV_REGISTERED and not user.is_anonymous()) or
Expand Down

0 comments on commit 808a345

Please sign in to comment.