Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-15279

Bulk change Rules if edit permissions on single Quality Profile

    XMLWordPrintable

    Details

    • Edition:
      Community
    • Production Notes:
      None

      Description

      Currently, we only show the Bulk Change button on the Rules page if the user has permissions to administer all quality profiles. But some users have "edit" permissions on specific Quality Profiles. For such users, it would also make sense to show the Bulk Change button, when in context of a specific profile.

      Solution
      In src/main/js/apps/coding-rules/components/App.tsx, update renderBulkButton() to not only check the global permission, but also if in context of a single profile (state.query.profile), and whether the user has profile.actions.edit permissions on that profile. If true, we should be able to enable the Bulk Change button.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wouter.admiraal Wouter Admiraal
              Reporter:
              wouter.admiraal Wouter Admiraal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: