authorization improvement
This commit is contained in:
@@ -294,7 +294,7 @@
|
||||
|
||||
// slider
|
||||
var slider = document.getElementById("myRange");
|
||||
{% if analysis and user.is_authenticated and user == rower.user %}
|
||||
{% if analysis and user.is_authenticated and user == analysis.workout.user.user %}
|
||||
document.getElementById("myRange").style.display = "block";
|
||||
{% else %}
|
||||
document.getElementById("myRange").style.display = "none";
|
||||
|
||||
Reference in New Issue
Block a user