cleanUserRoles() public static method

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;
 }