Skip to content

Commit

Permalink
Merge pull request #473 from offa/category_override
Browse files Browse the repository at this point in the history
Override getCategory() instead of getCategoryName()
  • Loading branch information
dwnusbaum committed Dec 8, 2022
2 parents 65cc302 + cfb4f37 commit ecd1702
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

package org.jenkinsci.plugins.scriptsecurity.scripts;

import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.Extension;
import hudson.model.ManagementLink;
import hudson.security.Permission;
Expand Down Expand Up @@ -75,9 +76,9 @@
return Jenkins.ADMINISTER;
}

// TODO: Override `getCategory` instead using `Category.SECURITY` when minimum core version is 2.226+, see https://github.com/jenkinsci/jenkins/commit/6de7e5fc7f6fb2e2e4cb342461788f97e3dfd8f6.
protected String getCategoryName() {
return "SECURITY";
@NonNull
@Override
public Category getCategory() {
return Category.SECURITY;
}

}

0 comments on commit ecd1702

Please sign in to comment.