summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2013-01-29 16:14:24 +0000
committerElgarL <ElgarL@palmergames.com>2013-01-29 16:14:24 +0000
commit9e4493fbb42b044f74d4ca08dec880fb63522593 (patch)
tree2a3be6f62fa19fcff7a5d6a0ea137bd96295f699
parentfaad91849d6e244c4a95b5288a778f67af8831c7 (diff)
downloadEssentials-9e4493fbb42b044f74d4ca08dec880fb63522593.tar
Essentials-9e4493fbb42b044f74d4ca08dec880fb63522593.tar.gz
Essentials-9e4493fbb42b044f74d4ca08dec880fb63522593.tar.lz
Essentials-9e4493fbb42b044f74d4ca08dec880fb63522593.tar.xz
Essentials-9e4493fbb42b044f74d4ca08dec880fb63522593.zip
Prevent '*' permissions granting the 'groupmanager.noofflineperm'
permission.
-rw-r--r--EssentialsGroupManager/src/Changelog.txt3
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java2
2 files changed, 4 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/Changelog.txt b/EssentialsGroupManager/src/Changelog.txt
index fe443e2a4..c8d577945 100644
--- a/EssentialsGroupManager/src/Changelog.txt
+++ b/EssentialsGroupManager/src/Changelog.txt
@@ -209,4 +209,5 @@ v 2.0:
- Synchronize pushing to Bukkit perms to prevent any ConcurrentModificationException.
- Do not grant any permissions (nor update Bukkit) if the server is in offline mode and the player has the permission node 'groupmanager.noofflineperms'.
- Negate 'groupmanager.noofflineperms' by default in the owner group.
- - Add support for BukkitForge using 'overworld' as the main world name. \ No newline at end of file
+ - Add support for BukkitForge using 'overworld' as the main world name.
+ - Prevent '*' permissions granting the 'groupmanager.noofflineperm' permission. \ No newline at end of file
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java
index 7396f3f70..a221c56a2 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java
@@ -172,6 +172,8 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
permArray.addAll(GroupManager.BukkitPermissions.getAllRegisteredPermissions(includeChildren));
allPerms = true;
perms.remove("*");
+ // Remove the no offline perms node as this should not be given.
+ perms.remove("groupmanager.noofflineperms");
}
for (String perm : perms) {