UserGroup::checkOtherAdmins PHP Méthode

checkOtherAdmins() public méthode

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