권한 세팅

This commit is contained in:
2019-01-18 03:01:02 +09:00
parent d26a1f0312
commit edf4508e6b
11 changed files with 65 additions and 35 deletions
+6 -1
View File
@@ -21,7 +21,12 @@ $db = DB::db();
$me = $db->queryFirstRow('SELECT `no`,nation,`level` FROM general WHERE `owner`=%i', $userID);
//내가 수뇌부이어야함
if($me['level'] < 5) {
$permission = checkSecretPermission($me);
if($permission < 0){
header('location:b_myBossInfo.php');
exit();
}
else if ($me['level'] < 5 && $permission != 4) {
header('location:b_myBossInfo.php');
exit();
}