summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/Constants.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/gitblit/Constants.java')
-rw-r--r--src/com/gitblit/Constants.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/gitblit/Constants.java b/src/com/gitblit/Constants.java
index 3ca917dc..7d1758db 100644
--- a/src/com/gitblit/Constants.java
+++ b/src/com/gitblit/Constants.java
@@ -13,9 +13,9 @@ public class Constants {
public static enum AccessRestrictionType {
NONE, PUSH, CLONE, VIEW;
- public static AccessRestrictionType fromString(String name) {
+ public static AccessRestrictionType fromName(String name) {
for (AccessRestrictionType type : values()) {
- if (type.toString().equalsIgnoreCase(name)) {
+ if (type.name().equalsIgnoreCase(name)) {
return type;
}
}
@@ -29,13 +29,13 @@ public class Constants {
public String toString() {
switch (this) {
case NONE:
- return "none";
+ return "Anonymous View, Clone, & Push";
case PUSH:
- return "push";
+ return "Anonymous View & Clone, Authenticated Push";
case CLONE:
- return "clone";
+ return "Anonymous View, Authenticated Clone & Push";
case VIEW:
- return "view";
+ return "Authenticated View, Clone, & Push";
}
return "none";
}