[Migration] Custom Template Tag to check if a user is eligible to delete a place asset #22

Open
opened 2021-10-18 11:57:27 +02:00 by reverend · 0 comments
Collaborator

Original https://git.mowoe.com/reverend/lostplaces-backend/issues/22 by @reverend from Sat, 26 Sep 2020 10:48:20 CEST

There should be a custom template tag that checks weather a user is the submitter of the current place or if the user is the submitter of the place asset in question. The template tag should open a scope, like a if statement. If the user is eligible then the content inside the scope should be rendered.

Comment by @Commander1024 from Mon, 28 Sep 2020 22:26:33 CEST

Do you mean something, that replaces e. g.:

{% if request.user and request.user.explorer == config.tagged_item.submitted_by %}
in tagging.html?

Comment by @Commander1024 from Sun, 11 Oct 2020 09:46:33 CEST

Done in 5035c6fe2f, but I dunno - kinda more dirty than before -.-

## Original https://git.mowoe.com/reverend/lostplaces-backend/issues/22 by @reverend from Sat, 26 Sep 2020 10:48:20 CEST There should be a custom template tag that checks weather a user is the submitter of the current place or if the user is the submitter of the place asset in question. The template tag should open a scope, like a if statement. If the user is eligible then the content inside the scope should be rendered. ### Comment by @Commander1024 from Mon, 28 Sep 2020 22:26:33 CEST Do you mean something, that replaces e. g.: {% if request.user and request.user.explorer == config.tagged_item.submitted_by %} in tagging.html? ### Comment by @Commander1024 from Sun, 11 Oct 2020 09:46:33 CEST Done in 5035c6fe2f5d9ef61ae65bac659df62fd75764c8, but I dunno - kinda more dirty than before -.-
reverend self-assigned this 2021-10-18 11:57:27 +02:00
reverend added the
Change
label 2021-10-18 11:58:11 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Commander1024/lostplaces-backend#22
No description provided.