summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
af86787)
def subscribe(request, id, user=0):
if user:
user = User.objects.filter(id=user)[0]
def subscribe(request, id, user=0):
if user:
user = User.objects.filter(id=user)[0]
- if user.is_a_super_user_or_staff():
+ if not (user.is_a_super_user_or_staff() or user.is_authenticated()):
raise CommandException(_("You do not have the correct credentials to preform this action."))
else:
raise CommandException(_("You do not have the correct credentials to preform this action."))
else: