mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-06 00:25:58 +00:00
replacing more adminCheck() by permission constants
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6351 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
3c158ba106
commit
7b7be1e1ee
16 files changed
+88
-65
No files matched your search
@@ -435,14 +435,12 @@ public final class PluginWrapper {
|
||||
//
|
||||
//
|
||||
public void doMakeEnabled(StaplerRequest req, StaplerResponse rsp) throws IOException {
|
||||
if(!Hudson.adminCheck(req,rsp))
|
||||
return;
|
||||
Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
|
||||
enable();
|
||||
rsp.setStatus(200);
|
||||
}
|
||||
public void doMakeDisabled(StaplerRequest req, StaplerResponse rsp) throws IOException {
|
||||
if(!Hudson.adminCheck(req,rsp))
|
||||
return;
|
||||
Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
|
||||
disable();
|
||||
rsp.setStatus(200);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user