Login fix

This commit is contained in:
2021-03-12 11:10:14 +01:00
parent a31ed44bdd
commit c6e002d464
12 changed files with 43 additions and 35 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
/**
* @return bool
*/
function isAdmin(){
function isAdmin(): bool
{
session_start();
return isset($_SESSION['admin']);
}