UserGroup::checkOtherAdmins PHP Method

checkOtherAdmins() public method

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