1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-02 17:29:20 +02:00

Add admin check to report4.php to restrict access to user reports

This commit is contained in:
Daniel Neto 2025-09-26 09:22:56 -03:00
parent ac340dfc7e
commit 5abbb80f6b

View file

@ -1,3 +1,11 @@
<?php
if(!User::isAdmin()) {
echo '<!-- Only admin can see the users report -->';
return;
}
?>
<div class="col-md-12 col-sm-12 col-xs-12 <?php echo getCSSAnimationClassAndStyle('animate__fadeInUp'); ?>">
<div class="panel panel-default">
<div class="panel-heading">