Browse Source

只允许超级管理员发布房屋

master
ahbmz 4 years ago
parent
commit
e6fae6ceb2
  1. 5
      application/index/controller/Base.php

5
application/index/controller/Base.php

@ -70,6 +70,11 @@ class Base extends Controller
protected static function authAddHouse($curr_count = 0, $count_type = 'count') protected static function authAddHouse($curr_count = 0, $count_type = 'count')
{ {
//超级管理员以外直接不允许添加
if (MEMBER['is_manager'] != 1) {
exit(send_http_status(51004));
}
//子账号不允许删除和添加 //子账号不允许删除和添加
if ($_SERVER['HTTP_SUBUSERID'] > 0) { if ($_SERVER['HTTP_SUBUSERID'] > 0) {
exit(send_http_status(417)); exit(send_http_status(417));

Loading…
Cancel
Save