From 1d5cbb18cd050ffa8318ee122343234f5c3fd3c4 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Fri, 26 Jun 2015 15:34:07 +0300 Subject: [PATCH] Profile - Edit And Delete Buttons Visible Only If Permitted --- templates/js/controllers/profileController.js | 4 +--- templates/views/profile.html | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/templates/js/controllers/profileController.js b/templates/js/controllers/profileController.js index 8c5f872..80bfa6a 100644 --- a/templates/js/controllers/profileController.js +++ b/templates/js/controllers/profileController.js @@ -91,9 +91,7 @@ angular.module('SeHub') [28, 48, 40, 3] ]; - $scope.isUser = function() { - return $scope.$parent.user.id.toString() /*The Actual User*/ === $routeParams.id /*The Profile User*/; - } + $scope.isUser = $scope.$parent.user.id.toString() /*The Actual User*/ === $routeParams.id /*The Profile User*/; } ]); \ No newline at end of file diff --git a/templates/views/profile.html b/templates/views/profile.html index 986f1d9..d9083ac 100644 --- a/templates/views/profile.html +++ b/templates/views/profile.html @@ -17,7 +17,7 @@
- + {{profileMode}}
@@ -80,7 +80,7 @@
- + X
@@ -102,7 +102,7 @@
- + X