diff options
author | snowleo <schneeleo@gmail.com> | 2011-11-29 21:38:00 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-11-29 21:38:00 +0100 |
commit | e169e954ba631f21c90b7435778ec6805e75c972 (patch) | |
tree | efbe03792c1f2e583860f02eb500e576b6079882 /EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java | |
parent | aed160b5fc88c44d781fa46454d7c16f8174984e (diff) | |
parent | 5f0936cf44185ea4116dd3c396b0909e008d9c6b (diff) | |
download | Essentials-e169e954ba631f21c90b7435778ec6805e75c972.tar Essentials-e169e954ba631f21c90b7435778ec6805e75c972.tar.gz Essentials-e169e954ba631f21c90b7435778ec6805e75c972.tar.lz Essentials-e169e954ba631f21c90b7435778ec6805e75c972.tar.xz Essentials-e169e954ba631f21c90b7435778ec6805e75c972.zip |
Merge branch 'refs/heads/groupmanager'
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java index 861c5e3d4..d7971d424 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java @@ -294,7 +294,7 @@ public class GlobalGroups { */
public boolean hasPermission(String groupName, String permissionNode) {
- if (!hasGroup(groupName.toLowerCase()))
+ if (!hasGroup(groupName))
return false;
return groups.get(groupName.toLowerCase()).hasSamePermissionNode(permissionNode);
@@ -315,7 +315,7 @@ public class GlobalGroups { result.askedPermission = permissionNode;
result.resultType = PermissionCheckResult.Type.NOTFOUND;
- if (!hasGroup(groupName.toLowerCase()))
+ if (!hasGroup(groupName))
return result;
Group tempGroup = groups.get(groupName.toLowerCase());
@@ -337,7 +337,7 @@ public class GlobalGroups { * @return List of all group names
*/
public List<String> getGroupsPermissions(String groupName) {
- if (!hasGroup(groupName.toLowerCase()))
+ if (!hasGroup(groupName))
return null;
return groups.get(groupName.toLowerCase()).getPermissionList();
@@ -374,7 +374,7 @@ public class GlobalGroups { * @return Group object
*/
public Group getGroup(String groupName) {
- if (!hasGroup(groupName.toLowerCase()))
+ if (!hasGroup(groupName))
return null;
return groups.get(groupName.toLowerCase());
|