public checkOtherAdmins ( ) : boolean | ||
리턴 | boolean |
public function checkOtherAdmins()
{
if ($this->find('first', array('conditions' => array('UserGroup.id <>' => 1)))) {
return true;
} else {
return false;
}
}