Skip to content

Fix/unistall delete right plugin#236

Merged
Rom1-B merged 3 commits into
mainfrom
fix/unistall-delete-right-plugin
Jun 10, 2026
Merged

Fix/unistall delete right plugin#236
Rom1-B merged 3 commits into
mainfrom
fix/unistall-delete-right-plugin

Conversation

@Herafia

@Herafia Herafia commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  • Fix plugin uninstall to correctly remove plugin permissions

Screenshots (if appropriate):

@Herafia Herafia requested a review from Rom1-B June 10, 2026 08:26
@Herafia Herafia self-assigned this Jun 10, 2026
Comment thread inc/profile.class.php Outdated
/** @var DBmysql $DB */
global $DB;

$DB->delete('glpi_profilerights', ['name' => 'plugin_credit_ticketconfig']);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use: ProfileRight::deleteProfileRights()

@Herafia Herafia requested a review from Rom1-B June 10, 2026 09:15
@Rom1-B Rom1-B merged commit 3704bb9 into main Jun 10, 2026
3 checks passed
@Rom1-B Rom1-B deleted the fix/unistall-delete-right-plugin branch June 10, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants