Skip to content
Snippets Groups Projects
Commit 53de4e30 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction script migration privilege archivage

parent 6625c178
Branches
Tags
No related merge requests found
...@@ -157,4 +157,17 @@ class MigrationPrivilegesArchivage extends AbstractMigration ...@@ -157,4 +157,17 @@ class MigrationPrivilegesArchivage extends AbstractMigration
//Clear cache car on a modifié les privileges donc les entity en cache ne doivent plus servir //Clear cache car on a modifié les privileges donc les entity en cache ne doivent plus servir
$oa->run('clear-cache'); $oa->run('clear-cache');
} }
private function havePrivilege($statut, $privilegeCode)
{
foreach ($statut['PRIVILEGES'] as $privilege) {
if ($privilege['CODE_PRIVILEGE'] == $privilegeCode) {
return true;
}
}
return false;
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment