Skip to content
Permalink
Browse files

[JENKINS-9694] bot permissions didn't apply for userstat command

  • Loading branch information...
kutzi committed May 17, 2011
1 parent 8bd18aa commit 3be1be9fb4bd01cff209ffebde9202cd0ae8f193
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/main/java/hudson/plugins/im/bot/UserStatCommand.java
@@ -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;
@@ -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;

0 comments on commit 3be1be9

Please sign in to comment.
You can’t perform that action at this time.