This commit is contained in:
Fándly Gergő
2019-08-10 15:30:59 +03:00
parent a4b2be4d9a
commit d24a3edef4
6 changed files with 119 additions and 4 deletions

View File

@ -41,7 +41,7 @@ else{
}
if($sub!=""){
if($sub!="fileshare" && $sub!="blog" && $sub!="orders" && $sub!="messages" && $sub!="news" && $sub!="admin" && $sub!="profile"){
if($sub!="fileshare" && $sub!="blog" && $sub!="projects" && $sub!="orders" && $sub!="messages" && $sub!="news" && $sub!="admin" && $sub!="profile"){
functions::setError(500);
header("Location: /userarea");
}
@ -49,7 +49,7 @@ else{
functions::setError(500);
header("Location: /userarea");
}
if(($sub=="orders" || $sub=="messages") && $_SESSION['accesslevel']<2){
if(($sub=="projects" || $sub=="orders" || $sub=="messages") && $_SESSION['accesslevel']<2){
functions::setError(500);
header("Location: /userarea");
}