don't let them create guild if low on balance

This commit is contained in:
Tyler Renelle
2013-09-01 21:04:23 -04:00
parent d0c915f58a
commit 9f11d4f70d
+2 -2
View File
@@ -77,8 +77,8 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
$scope.newGroup = new Groups({type:'guild', privacy:'private', leader: User.user._id, members: [User.user._id]});
$scope.create = function(group){
if (User.user.balance >= 1) {
$rootScope.modals.moreGems = true;
if (User.user.balance < 1) {
return $rootScope.modals.moreGems = true;
// $('#more-gems-modal').modal('show');
}