mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-11 21:40:17 +02:00
Fixed Bug #329
This commit is contained in:
parent
ac5ee52ff8
commit
bd3b8fbf20
@ -112,7 +112,7 @@ def hr_application_personal_removal(request, app_id):
|
|||||||
logger.debug("hr_application_personal_removal called by user %s for app id %s" % (request.user, app_id))
|
logger.debug("hr_application_personal_removal called by user %s for app id %s" % (request.user, app_id))
|
||||||
app = get_object_or_404(Application, pk=app_id)
|
app = get_object_or_404(Application, pk=app_id)
|
||||||
if app.user == request.user:
|
if app.user == request.user:
|
||||||
if app.accepted == None:
|
if app.approved == None:
|
||||||
logger.info("User %s deleting %s" % (request.user, app))
|
logger.info("User %s deleting %s" % (request.user, app))
|
||||||
app.delete()
|
app.delete()
|
||||||
else:
|
else:
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
class="glyphicon glyphicon-eye-open"></span></button>
|
class="glyphicon glyphicon-eye-open"></span></button>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{% if personal_app.approved_denied == None %}
|
{% if personal_app.approved == None %}
|
||||||
<a href="/hr_application_personal_removal/{{ personal_app.id }}">
|
<a href="/hr_application_personal_removal/{{ personal_app.id }}">
|
||||||
<button type="button" class="btn btn-danger"><span
|
<button type="button" class="btn btn-danger"><span
|
||||||
class="glyphicon glyphicon-remove"></span></button>
|
class="glyphicon glyphicon-remove"></span></button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user