GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens, and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption in our documentation.
/* Delete user_group_permissions if they were created before default permissions */
if(!$adapter->query("SELECT * FROM `permission` WHERE code = 'CATEGORY' OR code = 'ARTICLE' OR code = 'PENDING' OR code = 'VALIDATED' OR code = 'REFUSED' OR code = 'ARCHIVED'"))
$adapter->query("DELETE FROM `user_group_permission`;");
if(!$adapter->query("SELECT * FROM `permission` WHERE code = 'CATEGORY' LIMIT 1;"))
$adapter->query("insert into `permission` (code, module, type, sorting, description) VALUES ('CATEGORY', 'ARTICLE', 'Droits', 1, 'Créer des sous-catégories et des articles')");