aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-12-20 14:24:19 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-12-20 14:24:19 +0200
commite0b0859f62924d38c8cd7ac9975303c4bfb08624 (patch)
tree6c6b0d45cf2ed76e3d6405a5fb512ba4cba95288 /Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs
parentd204e56c57dcf52f31c9e64222f32a678150e721 (diff)
downloadTango-e0b0859f62924d38c8cd7ac9975303c4bfb08624.tar.gz
Tango-e0b0859f62924d38c8cd7ac9975303c4bfb08624.zip
Added environments support for users & roles !!
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs
index 245c18b9b..ed1a807be 100644
--- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs
+++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs
@@ -100,7 +100,7 @@ namespace Tango.MachineService.Controllers
var user = db.Users.SingleOrDefault(x => x.Email.ToLower() == request.Email.ToLower() && x.Password == request.Password);
- if (user != null && user.HasPermission(Permissions.PublishMachineStudioVersion))
+ if (user != null && user.HasPermission(Permissions.PublishMachineStudioVersions))
{
var latestVersion = db.MachineStudioVersions.ToList().OrderByDescending(x => Version.Parse(x.Version)).FirstOrDefault();
Version currentVersion = Version.Parse(request.Version);