Permalink
Browse files

limit to staff users

  • Loading branch information...
stefanfoulis committed Dec 10, 2012
1 parent 1ea405f commit e61943834c84ee3274d647803b5d29cd5becdfd4
Showing with 1 addition and 1 deletion.
  1. +1 −1 stacks/fields.py
View
@@ -9,6 +9,6 @@ class StackSearchField(AutoModelSelect2Field):
def security_check(self, request, *args, **kwargs):
user = request.user
- if user and not user.is_anonymous() and user.has_perm('djangocms_stack.change_stack'):
+ if user and not user.is_anonymous() and user.is_staff and user.has_perm('djangocms_stack.change_stack'):
return True
return False

0 comments on commit e619438

Please sign in to comment.