mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-26 07:55:52 +03:00
[GH-ISSUE #204] request.user.is_superuser or request.user.is_staff or not userinstance.is_template #136
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @catborise on GitHub (Nov 7, 2018).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/204
hi @honza801
i am not sure i think there is logic error. can you please check it. i do not want to break logic.
{% if media_iso and request.user.is_superuser or request.user.is_staff or not userinstance.is_template %}(instance.html)
there is not any media_iso but you could call mount_iso function with 'none' value. It causes error
thanks
@honza801 commented on GitHub (Nov 7, 2018):
hmm, django templates cannot use parenthesis in conditionals... i had to put it into view :(
check latest commit in master branch
github.com/honza801/webvirtcloud@3d43aa392cfous
@catborise commented on GitHub (Nov 8, 2018):
thanks. it works.