summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-02-02 10:43:17 +0000
committerKHobbits <rob@khobbits.co.uk>2012-02-02 10:43:17 +0000
commit86a1dda46c6b269bb3c95fc0431e15838eeafbca (patch)
treed8ef5e7e532185bd55b50906328b2d79bcbda16b
parent4326ce0d4ab98aec52894358c48bd7504ce51ebe (diff)
downloadEssentials-86a1dda46c6b269bb3c95fc0431e15838eeafbca.tar
Essentials-86a1dda46c6b269bb3c95fc0431e15838eeafbca.tar.gz
Essentials-86a1dda46c6b269bb3c95fc0431e15838eeafbca.tar.lz
Essentials-86a1dda46c6b269bb3c95fc0431e15838eeafbca.tar.xz
Essentials-86a1dda46c6b269bb3c95fc0431e15838eeafbca.zip
Make it so ops can build, even if they don't have the matching permission.
-rw-r--r--Essentials/src/com/earth2me/essentials/User.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java
index e23fe1de0..b289333aa 100644
--- a/Essentials/src/com/earth2me/essentials/User.java
+++ b/Essentials/src/com/earth2me/essentials/User.java
@@ -544,6 +544,10 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
public boolean canBuild()
{
+ if (isOp())
+ {
+ return true;
+ }
return ess.getPermissionsHandler().canBuild(base, getGroup());
}