summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/models/UserModel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/gitblit/models/UserModel.java')
-rw-r--r--src/com/gitblit/models/UserModel.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/gitblit/models/UserModel.java b/src/com/gitblit/models/UserModel.java
index 7995f7e4..77337043 100644
--- a/src/com/gitblit/models/UserModel.java
+++ b/src/com/gitblit/models/UserModel.java
@@ -366,13 +366,12 @@ public class UserModel implements Principal, Serializable, Comparable<UserModel>
}
/**
- * Returns true if the user is allowed to create the specified repository
- * on-push if the repository does not already exist.
+ * Returns true if the user is allowed to create the specified repository.
*
* @param repository
* @return true if the user can create the repository
*/
- public boolean canCreateOnPush(String repository) {
+ public boolean canCreate(String repository) {
if (canAdmin()) {
// admins can create any repository
return true;