This is an automated email from the git hooks/post-receive script. unknown user pushed a commit to branch devel in repository Pollen. commit 9f3004b05b5a0eb9beb831744724e0447c24576d Author: Adrien Garandel <a.garandel@dralagen.fr> Date: Wed May 21 18:29:04 2014 +0200 check permission for edit poll --- pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js b/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js index 74b03ec..41dd6fc 100644 --- a/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js +++ b/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js @@ -242,6 +242,9 @@ angular.module('pollControllers', []) var initPoll = function () { Poll.get({pollId:$routeParams.pollId}).$promise.then(function (poll) { + if (angular.isUndefined(poll.permission)) { + $location.path('/'); + } $scope.data.poll = poll; }); PollChoice.query({pollId:$routeParams.pollId}).$promise.then(function (choices) { -- To stop receiving notification emails like this one, please contact Chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
Chorem.org scm