Skip to content

Commit

Permalink
[JENKINS-9694] bot permissions didn't apply for userstat command
Browse files Browse the repository at this point in the history
  • Loading branch information
kutzi committed May 17, 2011
1 parent 8bd18aa commit 3be1be9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/hudson/plugins/im/bot/UserStatCommand.java
Expand Up @@ -2,7 +2,6 @@

import hudson.Extension;
import hudson.model.Hudson;
import hudson.model.Item;
import hudson.model.User;
import hudson.plugins.cigame.UserScoreProperty;
import hudson.plugins.im.Sender;
Expand Down Expand Up @@ -63,7 +62,7 @@ protected String getReply(Bot bot, Sender sender, String[] args) {
}

private String checkPermission(User user, Sender sender) {
if (!user.hasPermission(Item.READ)) {
if (!user.hasPermission(Hudson.READ)) {
return sender.getNickname() + ": you may not read that user!";
}
return null;
Expand Down

0 comments on commit 3be1be9

Please sign in to comment.