Change doorboy slack response texts
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
Madis Mägi 2023-08-11 20:56:12 +03:00
parent cce18b20a7
commit 59d756a845

View File

@ -106,4 +106,7 @@ def view_slack_doorboy():
subject = member.display_name
msg = "%s %s door access for %s via Slack bot" % (status, door, subject)
spam(msg)
return "Opening %s for %s" % (door, member.display_name)
if approved:
return "Opening %s for %s" % (door, subject)
else:
return "Permission denied"