Skip to content

Commit

Permalink
disable comment submit button for unsigned users
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed May 22, 2024
1 parent 60b0f1f commit 8c1f85d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class="close"

<textarea name="comment" placeholder="Your comment" cols="20" rows="5"></textarea>
<small style="color:red"><?= $comment_form_info['error'] ?? "" ?></small>
<button class="secondary" type="submit">Submit</button>
<button class="secondary" type="submit" <?= $signed_in_user ? "" : "disabled" ?>>Submit</button>
</form>
</article>
</dialog>
Expand Down

0 comments on commit 8c1f85d

Please sign in to comment.