#100: Fixed wrong permissions.
This commit is contained in:
parent
eb7672074e
commit
b65e21e08f
@ -317,9 +317,8 @@ class Application(models.Model, SlideMixin):
|
|||||||
if user:
|
if user:
|
||||||
try:
|
try:
|
||||||
user.profile
|
user.profile
|
||||||
is_admin = True
|
|
||||||
except Profile.DoesNotExist:
|
except Profile.DoesNotExist:
|
||||||
pass
|
is_admin = True
|
||||||
|
|
||||||
# check if user allowed to withdraw an application
|
# check if user allowed to withdraw an application
|
||||||
if ((self.status == "pub"
|
if ((self.status == "pub"
|
||||||
|
Loading…
Reference in New Issue
Block a user