public string setForumMinAdmins(string forumName, int minAdmins, string requestingUser) { List <string> input = new List <string>() { forumName, requestingUser }; if (Constants.isValidInput(input) && minAdmins >= 1) { lock (o) { if (_um.getUserPermissionsForForum(forumName, requestingUser) != permission.SUPER_ADMIN && _um.getUserPermissionsForForum(forumName, requestingUser) != permission.ADMIN) { return("Unauthorized user"); } int numOfAdmins = _um.getNumOfAdmins(forumName); if (numOfAdmins < minAdmins) { return(Constants.ILLEGAL_ACTION); } if (!_fm.setForumMinAdmins(forumName, minAdmins)) { return(Constants.forumDoesntExist(forumName)); } return(Constants.SUCCESS); } } return(Constants.INVALID_INPUT); }