UserGroup::checkOtherAdmins PHP 메소드

checkOtherAdmins() 공개 메소드

管理者グループ以外のグループが存在するかチェックする
public checkOtherAdmins ( ) : boolean
리턴 boolean
    public function checkOtherAdmins()
    {
        if ($this->find('first', array('conditions' => array('UserGroup.id <>' => 1)))) {
            return true;
        } else {
            return false;
        }
    }