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:
parent
ac340dfc7e
commit
5abbb80f6b
1 changed files with 8 additions and 0 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue