1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-22 17:18:24 +02:00

Users can only edit & delete their own messages (except for admin users)

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-04-28 16:36:54 +02:00
parent a771710094
commit 0cab21f344
2 changed files with 24 additions and 13 deletions

View File

@ -87,4 +87,9 @@
</div>
</form>
</div>
</div>
</div>
<script>
const USER_ID = {{ request.user.id }}
const IS_ADMIN = {{ request.user.registration.is_admin|yesno:"true,false" }}
</script>