Skip to content

Commit

Permalink
Fixed issue DNN-Connect#8
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrasier committed Feb 2, 2019
1 parent 646a8dc commit 7687636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Connect.DNN.Powershell/Core/Commands/RoleCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static RoleModel NewRole(Data.Site site, int portalId, string roleName, s
cmd += string.IsNullOrEmpty(description) ? "" : string.Format(" --description {0}", description);
cmd += isPublic == null ? "" : string.Format(" --public {0}", isPublic);
cmd += autoAssign == null ? "" : string.Format(" --autoassign {0}", autoAssign);
cmd += status == null ? "" : string.Format(" --status {0}", status.ToString());
cmd += status == null ? "" : string.Format(" --status {0}", status.ToString().ToLower());
var response = DnnPromptController.ProcessCommand(site, portalId, 5, cmd);
var result = Newtonsoft.Json.JsonConvert.DeserializeObject<ConsoleResultModel<RoleModel>>(response.Contents);
result.AssertValidConsoleResponse();
Expand All @@ -47,7 +47,7 @@ public static RoleModel SetRole(Data.Site site, int portalId, int roleId, string
cmd += string.IsNullOrEmpty(description) ? "" : string.Format(" --description {0}", description);
cmd += isPublic == null ? "" : string.Format(" --public {0}", isPublic);
cmd += autoAssign == null ? "" : string.Format(" --autoassign {0}", autoAssign);
cmd += status == null ? "" : string.Format(" --status {0}", status.ToString());
cmd += status == null ? "" : string.Format(" --status {0}", status.ToString().ToLower());
var response = DnnPromptController.ProcessCommand(site, portalId, 5, cmd);
var result = Newtonsoft.Json.JsonConvert.DeserializeObject<ConsoleResultModel<RoleModel>>(response.Contents);
result.AssertValidConsoleResponse();
Expand Down

0 comments on commit 7687636

Please sign in to comment.