cleanUserRoles() публичный статический Метод

Enforce integrity between users and roles.
public static cleanUserRoles ( )
Пример #1
0
 /**
  *
  *
  * @return bool
  */
 public function customFinalization()
 {
     $this->setRoleDefaults();
     PermissionModel::resetAllRoles();
     // Remove invalid relation between non existing users/roles
     RoleModel::cleanUserRoles();
     $Imp = $this->getCustomImportModel();
     if ($Imp !== null) {
         $Imp->afterImport();
     }
     return true;
 }