From fbf3cf0f91c9169960e02adaa3812c4caaf15575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Krysiak?= Date: Fri, 21 Oct 2016 16:04:19 +0200 Subject: [PATCH] chore: Bump version to 4.1.1 --- bower.json | 2 +- dist/angular-permission-ng.js | 8 ++++++-- dist/angular-permission-ng.min.js | 4 ++-- dist/angular-permission-ng.min.js.map | 2 +- dist/angular-permission-ui.js | 25 ++++++++----------------- dist/angular-permission-ui.min.js | 4 ++-- dist/angular-permission-ui.min.js.map | 2 +- dist/angular-permission.js | 2 +- dist/angular-permission.min.js | 2 +- index.js | 2 +- package.json | 2 +- 11 files changed, 25 insertions(+), 30 deletions(-) diff --git a/bower.json b/bower.json index 0ca603f..57e38ff 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-permission", - "version": "4.1.0", + "version": "4.1.1", "authors": [ "Rafael Vidaurre (http://www.rafaelvidaurre.com)", "Blazej Krysiak " diff --git a/dist/angular-permission-ng.js b/dist/angular-permission-ng.js index b75f7ba..a64bc5b 100644 --- a/dist/angular-permission-ng.js +++ b/dist/angular-permission-ng.js @@ -1,7 +1,7 @@ /** * angular-permission-ng * Extension module of angular-permission for access control within angular-route - * @version v4.1.0 - 2016-10-19 + * @version v4.1.1 - 2016-10-21 * @link https://github.com/Narzerus/angular-permission * @author Rafael Vidaurre (http://www.rafaelvidaurre.com), Blazej Krysiak * @license MIT License, http://www.opensource.org/licenses/MIT @@ -50,7 +50,11 @@ * @returns {boolean} */ function areSetRoutePermissions() { - return angular.isDefined(next.$$route.data) && angular.isDefined(next.$$route.data.permissions); + try { + return !!next.$$route.data.permissions; + } catch (e) { + return false; + } } /** diff --git a/dist/angular-permission-ng.min.js b/dist/angular-permission-ng.min.js index 2d9c1f9..577dbae 100644 --- a/dist/angular-permission-ng.min.js +++ b/dist/angular-permission-ng.min.js @@ -1,12 +1,12 @@ /** * angular-permission-ng * Extension module of angular-permission for access control within angular-route - * @version v4.1.0 - 2016-10-19 + * @version v4.1.1 - 2016-10-21 * @link https://github.com/Narzerus/angular-permission * @author Rafael Vidaurre (http://www.rafaelvidaurre.com), Blazej Krysiak * @license MIT License, http://www.opensource.org/licenses/MIT */ -!function(a,angular,b){"use strict";function c(a,b,c,d,e,f){"ngInject";a.$on("$routeChangeStart",function(a,g,h){function i(){return angular.isDefined(g.$$route.data)&&angular.isDefined(g.$$route.data.permissions)}function j(){c.next=g,c.current=h}function k(){var a=new f({only:g.$$route.data.permissions.only,except:g.$$route.data.permissions.except,redirectTo:g.$$route.data.permissions.redirectTo}),b=e.authorizeByPermissionMap(a);return b.then(function(){l()})["catch"](function(b){m(b,a)}),b}function l(){d.broadcastPermissionAcceptedEvent()}function m(a,c){d.broadcastPermissionDeniedEvent(),c.resolveRedirectState(a).then(function(a){b.path(a.state).replace()})}j(),i()&&!d.areEventsDefaultPrevented()&&(d.broadcastPermissionStartEvent(),g.$$route.resolve=g.$$route.resolve||{},g.$$route.resolve.$$permission=k)})}function d(a,b,c,d){"ngInject";function e(){return i()}function f(){b.$broadcast(d.permissionStart,c.next)}function g(){b.$broadcast(d.permissionAccepted,c.next)}function h(){b.$broadcast(d.permissionDenied,c.next)}function i(){return b.$broadcast(d.permissionStart,c.next).defaultPrevented}return a.areEventsDefaultPrevented=e,a.broadcastPermissionStartEvent=f,a.broadcastPermissionAcceptedEvent=g,a.broadcastPermissionDeniedEvent=h,a}c.$inject=["$rootScope","$location","PermTransitionProperties","PermTransitionEvents","PermAuthorization","PermPermissionMap"],d.$inject=["$delegate","$rootScope","PermTransitionProperties","PermTransitionEventNames"];var e=angular.module("permission.ng",["permission","ngRoute"]).run(c);"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports=e.name),angular.module("permission.ng").decorator("PermTransitionEvents",d);var f={permissionStart:"$routeChangePermissionStart",permissionAccepted:"$routeChangePermissionAccepted",permissionDenied:"$routeChangePermissionDenied"};angular.module("permission.ng").value("PermTransitionEventNames",f)}(window,window.angular); +!function(a,angular,b){"use strict";function c(a,b,c,d,e,f){"ngInject";a.$on("$routeChangeStart",function(a,g,h){function i(){try{return!!g.$$route.data.permissions}catch(a){return!1}}function j(){c.next=g,c.current=h}function k(){var a=new f({only:g.$$route.data.permissions.only,except:g.$$route.data.permissions.except,redirectTo:g.$$route.data.permissions.redirectTo}),b=e.authorizeByPermissionMap(a);return b.then(function(){l()})["catch"](function(b){m(b,a)}),b}function l(){d.broadcastPermissionAcceptedEvent()}function m(a,c){d.broadcastPermissionDeniedEvent(),c.resolveRedirectState(a).then(function(a){b.path(a.state).replace()})}j(),i()&&!d.areEventsDefaultPrevented()&&(d.broadcastPermissionStartEvent(),g.$$route.resolve=g.$$route.resolve||{},g.$$route.resolve.$$permission=k)})}function d(a,b,c,d){"ngInject";function e(){return i()}function f(){b.$broadcast(d.permissionStart,c.next)}function g(){b.$broadcast(d.permissionAccepted,c.next)}function h(){b.$broadcast(d.permissionDenied,c.next)}function i(){return b.$broadcast(d.permissionStart,c.next).defaultPrevented}return a.areEventsDefaultPrevented=e,a.broadcastPermissionStartEvent=f,a.broadcastPermissionAcceptedEvent=g,a.broadcastPermissionDeniedEvent=h,a}c.$inject=["$rootScope","$location","PermTransitionProperties","PermTransitionEvents","PermAuthorization","PermPermissionMap"],d.$inject=["$delegate","$rootScope","PermTransitionProperties","PermTransitionEventNames"];var e=angular.module("permission.ng",["permission","ngRoute"]).run(c);"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports=e.name),angular.module("permission.ng").decorator("PermTransitionEvents",d);var f={permissionStart:"$routeChangePermissionStart",permissionAccepted:"$routeChangePermissionAccepted",permissionDenied:"$routeChangePermissionDenied"};angular.module("permission.ng").value("PermTransitionEventNames",f)}(window,window.angular); //# sourceMappingURL=angular-permission-ng.min.js.map \ No newline at end of file diff --git a/dist/angular-permission-ng.min.js.map b/dist/angular-permission-ng.min.js.map index c4ac36c..1e4e80b 100644 --- a/dist/angular-permission-ng.min.js.map +++ b/dist/angular-permission-ng.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["angular-permission-ng.js"],"names":["window","angular","undefined","run","$rootScope","$location","PermTransitionProperties","PermTransitionEvents","PermAuthorization","PermPermissionMap","$on","event","next","current","areSetRoutePermissions","isDefined","$$route","data","permissions","setTransitionProperties","permissionResolver","PermissionMap","only","except","redirectTo","authorizationResult","authorizeByPermissionMap","then","handleAuthorizedState","rejectedPermission","handleUnauthorizedState","broadcastPermissionAcceptedEvent","permissionMap","broadcastPermissionDeniedEvent","resolveRedirectState","redirect","path","state","replace","areEventsDefaultPrevented","broadcastPermissionStartEvent","resolve","$$permission","$delegate","PermTransitionEventNames","isRouteChangePermissionStartDefaultPrevented","$broadcast","permissionStart","permissionAccepted","permissionDenied","defaultPrevented","$inject","ngPermission","module","exports","name","decorator","value"],"mappings":";;;;;;;;;;CASC,SAAUA,EAAQC,QAASC,GAC1B,YAiBA,SAASC,GAAIC,EAAYC,EAAWC,EAA0BC,EAAsBC,EAAmBC,GACrG,UAKAL,GAAWM,IAAI,oBAAqB,SAAUC,EAAOC,EAAMC,GAkBzD,QAASC,KACP,MAAOb,SAAQc,UAAUH,EAAKI,QAAQC,OAAShB,QAAQc,UAAUH,EAAKI,QAAQC,KAAKC,aAQrF,QAASC,KACPb,EAAyBM,KAAOA,EAChCN,EAAyBO,QAAUA,EAGrC,QAASO,KACP,GAAIC,GAAgB,GAAIZ,IACtBa,KAAMV,EAAKI,QAAQC,KAAKC,YAAYI,KACpCC,OAAQX,EAAKI,QAAQC,KAAKC,YAAYK,OACtCC,WAAYZ,EAAKI,QAAQC,KAAKC,YAAYM,aAGxCC,EAAsBjB,EAAkBkB,yBAAyBL,EAUrE,OARAI,GACGE,KAAK,WACJC,MAFJH,SAIS,SAAUI,GACfC,EAAwBD,EAAoBR,KAGzCI,EAQT,QAASG,KACPrB,EAAqBwB,mCAWvB,QAASD,GAAwBD,EAAoBG,GACnDzB,EAAqB0B,iCAErBD,EACGE,qBAAqBL,GACrBF,KAAK,SAAUQ,GACd9B,EAAU+B,KAAKD,EAASE,OAAOC,YA1ErCnB,IAEIL,MAA6BP,EAAqBgC,8BAEpDhC,EAAqBiC,gCAErB5B,EAAKI,QAAQyB,QAAU7B,EAAKI,QAAQyB,YACpC7B,EAAKI,QAAQyB,QAAQC,aAAetB,KA4F1C,QAASb,GAAqBoC,EAAWvC,EAAYE,EAA0BsC,GAC7E,UAaA,SAASL,KACP,MAAOM,KAOT,QAASL,KACPpC,EAAW0C,WAAWF,EAAyBG,gBAAiBzC,EAAyBM,MAO3F,QAASmB,KACP3B,EAAW0C,WAAWF,EAAyBI,mBAAoB1C,EAAyBM,MAO9F,QAASqB,KACP7B,EAAW0C,WAAWF,EAAyBK,iBAAkB3C,EAAyBM,MAU5F,QAASiC,KACP,MAAOzC,GAAW0C,WAAWF,EAAyBG,gBAAiBzC,EAAyBM,MAAMsC,iBAGxG,MAlDAP,GAAUJ,0BAA4BA,EACtCI,EAAUH,8BAAgCA,EAC1CG,EAAUZ,iCAAmCA,EAC7CY,EAAUV,+BAAiCA,EA+CpCU,EAlKTxC,EAAIgD,SAAW,aAAc,YAAa,2BAA4B,uBAAwB,oBAAqB,qBACnH5C,EAAqB4C,SAAW,YAAa,aAAc,2BAA4B,2BAyFvF,IAAIC,GAAenD,QAChBoD,OAAO,iBAAkB,aAAc,YACvClD,IAAIA,EAEe,oBAAXkD,SAA6C,mBAAZC,UAA2BD,OAAOC,UAAYA,UACxFD,OAAOC,QAAUF,EAAaG,MAsEhCtD,QACGoD,OAAO,iBACPG,UAAU,uBAAwBjD,EAYrC,IAAIqC,IACFG,gBAAiB,8BACjBC,mBAAoB,iCACpBC,iBAAkB,+BAGpBhD,SACGoD,OAAO,iBACPI,MAAM,2BAA4Bb,IAErC5C,OAAQA,OAAOC","file":"angular-permission-ng.min.js"} \ No newline at end of file +{"version":3,"sources":["angular-permission-ng.js"],"names":["window","angular","undefined","run","$rootScope","$location","PermTransitionProperties","PermTransitionEvents","PermAuthorization","PermPermissionMap","$on","event","next","current","areSetRoutePermissions","$$route","data","permissions","e","setTransitionProperties","permissionResolver","PermissionMap","only","except","redirectTo","authorizationResult","authorizeByPermissionMap","then","handleAuthorizedState","rejectedPermission","handleUnauthorizedState","broadcastPermissionAcceptedEvent","permissionMap","broadcastPermissionDeniedEvent","resolveRedirectState","redirect","path","state","replace","areEventsDefaultPrevented","broadcastPermissionStartEvent","resolve","$$permission","$delegate","PermTransitionEventNames","isRouteChangePermissionStartDefaultPrevented","$broadcast","permissionStart","permissionAccepted","permissionDenied","defaultPrevented","$inject","ngPermission","module","exports","name","decorator","value"],"mappings":";;;;;;;;;;CASC,SAAUA,EAAQC,QAASC,GAC1B,YAiBA,SAASC,GAAIC,EAAYC,EAAWC,EAA0BC,EAAsBC,EAAmBC,GACrG,UAKAL,GAAWM,IAAI,oBAAqB,SAAUC,EAAOC,EAAMC,GAkBzD,QAASC,KACP,IACE,QAASF,EAAKG,QAAQC,KAAKC,YAC3B,MAAOC,GACP,OAAO,GASX,QAASC,KACPb,EAAyBM,KAAOA,EAChCN,EAAyBO,QAAUA,EAGrC,QAASO,KACP,GAAIC,GAAgB,GAAIZ,IACtBa,KAAMV,EAAKG,QAAQC,KAAKC,YAAYK,KACpCC,OAAQX,EAAKG,QAAQC,KAAKC,YAAYM,OACtCC,WAAYZ,EAAKG,QAAQC,KAAKC,YAAYO,aAGxCC,EAAsBjB,EAAkBkB,yBAAyBL,EAUrE,OARAI,GACGE,KAAK,WACJC,MAFJH,SAIS,SAAUI,GACfC,EAAwBD,EAAoBR,KAGzCI,EAQT,QAASG,KACPrB,EAAqBwB,mCAWvB,QAASD,GAAwBD,EAAoBG,GACnDzB,EAAqB0B,iCAErBD,EACGE,qBAAqBL,GACrBF,KAAK,SAAUQ,GACd9B,EAAU+B,KAAKD,EAASE,OAAOC,YA9ErCnB,IAEIL,MAA6BP,EAAqBgC,8BAEpDhC,EAAqBiC,gCAErB5B,EAAKG,QAAQ0B,QAAU7B,EAAKG,QAAQ0B,YACpC7B,EAAKG,QAAQ0B,QAAQC,aAAetB,KAgG1C,QAASb,GAAqBoC,EAAWvC,EAAYE,EAA0BsC,GAC7E,UAaA,SAASL,KACP,MAAOM,KAOT,QAASL,KACPpC,EAAW0C,WAAWF,EAAyBG,gBAAiBzC,EAAyBM,MAO3F,QAASmB,KACP3B,EAAW0C,WAAWF,EAAyBI,mBAAoB1C,EAAyBM,MAO9F,QAASqB,KACP7B,EAAW0C,WAAWF,EAAyBK,iBAAkB3C,EAAyBM,MAU5F,QAASiC,KACP,MAAOzC,GAAW0C,WAAWF,EAAyBG,gBAAiBzC,EAAyBM,MAAMsC,iBAGxG,MAlDAP,GAAUJ,0BAA4BA,EACtCI,EAAUH,8BAAgCA,EAC1CG,EAAUZ,iCAAmCA,EAC7CY,EAAUV,+BAAiCA,EA+CpCU,EAtKTxC,EAAIgD,SAAW,aAAc,YAAa,2BAA4B,uBAAwB,oBAAqB,qBACnH5C,EAAqB4C,SAAW,YAAa,aAAc,2BAA4B,2BA6FvF,IAAIC,GAAenD,QAChBoD,OAAO,iBAAkB,aAAc,YACvClD,IAAIA,EAEe,oBAAXkD,SAA6C,mBAAZC,UAA2BD,OAAOC,UAAYA,UACxFD,OAAOC,QAAUF,EAAaG,MAsEhCtD,QACGoD,OAAO,iBACPG,UAAU,uBAAwBjD,EAYrC,IAAIqC,IACFG,gBAAiB,8BACjBC,mBAAoB,iCACpBC,iBAAkB,+BAGpBhD,SACGoD,OAAO,iBACPI,MAAM,2BAA4Bb,IAErC5C,OAAQA,OAAOC","file":"angular-permission-ng.min.js"} \ No newline at end of file diff --git a/dist/angular-permission-ui.js b/dist/angular-permission-ui.js index 00f8cb4..c532f00 100644 --- a/dist/angular-permission-ui.js +++ b/dist/angular-permission-ui.js @@ -1,7 +1,7 @@ /** * angular-permission-ui * Extension module of angular-permission for access control within ui-router - * @version v4.1.0 - 2016-10-19 + * @version v4.1.1 - 2016-10-21 * @link https://github.com/Narzerus/angular-permission * @author Rafael Vidaurre (http://www.rafaelvidaurre.com), Blazej Krysiak * @license MIT License, http://www.opensource.org/licenses/MIT @@ -201,7 +201,7 @@ * @returns {boolean} */ function areEventsDefaultPrevented() { - return isStateChangePermissionStartDefaultPrevented() || isStateChangeStartDefaultPrevented(); + return isStateChangePermissionStartDefaultPrevented(); } /** @@ -257,20 +257,6 @@ PermTransitionProperties.options).defaultPrevented; } - /** - * Checks if event $stateChangeStart hasn't been disabled by default - * @methodOf permission.ui.PermTransitionEvents - * @private - * - * @returns {boolean} - */ - function isStateChangeStartDefaultPrevented() { - return $rootScope.$broadcast('$stateChangeStart', - PermTransitionProperties.toState, PermTransitionProperties.toParams, - PermTransitionProperties.fromState, PermTransitionProperties.fromParams, - PermTransitionProperties.options).defaultPrevented; - } - return $delegate; } @@ -483,13 +469,18 @@ /** * Checks if state has set permissions + * We check for hasOwnProperty, because ui-router lets the `data` property inherit from its parent * @methodOf permission.ui.StatePermissionMap * @private * * @returns {boolean} */ function areSetStatePermissions(state) { - return angular.isDefined(state.data) && angular.isDefined(state.data.permissions); + try { + return Object.prototype.hasOwnProperty.call(state.data, 'permissions'); + } catch (e) { + return false; + } } return StatePermissionMap; diff --git a/dist/angular-permission-ui.min.js b/dist/angular-permission-ui.min.js index 528a0b4..76e9458 100644 --- a/dist/angular-permission-ui.min.js +++ b/dist/angular-permission-ui.min.js @@ -1,12 +1,12 @@ /** * angular-permission-ui * Extension module of angular-permission for access control within ui-router - * @version v4.1.0 - 2016-10-19 + * @version v4.1.1 - 2016-10-21 * @link https://github.com/Narzerus/angular-permission * @author Rafael Vidaurre (http://www.rafaelvidaurre.com), Blazej Krysiak * @license MIT License, http://www.opensource.org/licenses/MIT */ -!function(a,angular,b){"use strict";function c(a){"ngInject";a.decorator("$state",function(a){return a.self.$$permissionState=function(){return a},a})}function d(a,b,c,d,e,f){"ngInject";a.$on("$stateChangeStart",function(a,g,h,i,j,k){function l(){c.toState=g,c.toParams=h,c.fromState=i,c.fromParams=j,c.options=k}function m(a){angular.extend(g,{$$isAuthorizationFinished:a})}function n(){return g.$$isAuthorizationFinished}function o(){d.broadcastPermissionAcceptedEvent();var a=angular.extend({},c.options,{notify:!1,location:!0});b.go(c.toState.name,c.toParams,a).then(function(){d.broadcastStateChangeSuccessEvent()})}function p(a,c){d.broadcastPermissionDeniedEvent(),c.resolveRedirectState(a).then(function(a){b.go(a.state,a.params,a.options)})}if(!n())if(m(!0),l(),d.areEventsDefaultPrevented())m(!1);else{d.broadcastPermissionStartEvent(),b.transition={},a.preventDefault();var q=new f(c.toState);e.authorizeByPermissionMap(q).then(function(){o()})["catch"](function(a){p(a,q)})["finally"](function(){m(!1)})}})}function e(a,b,c,d){"ngInject";function e(){return j()||k()}function f(){b.$broadcast(d.permissionStart,c.toState,c.toParams,c.options)}function g(){b.$broadcast(d.permissionAccepted,c.toState,c.toParams,c.options)}function h(){b.$broadcast(d.permissionDenies,c.toState,c.toParams,c.options)}function i(){b.$broadcast("$stateChangeSuccess",c.toState,c.toParams,c.fromState,c.fromParams)}function j(){return b.$broadcast(d.permissionStart,c.toState,c.toParams,c.options).defaultPrevented}function k(){return b.$broadcast("$stateChangeStart",c.toState,c.toParams,c.fromState,c.fromParams,c.options).defaultPrevented}return a.areEventsDefaultPrevented=e,a.broadcastStateChangeSuccessEvent=i,a.broadcastPermissionStartEvent=f,a.broadcastPermissionAcceptedEvent=g,a.broadcastPermissionDeniedEvent=h,a}function f(a,b,c){"ngInject";function d(a){return f(a)}function e(a){var e=b.get(a),f=new c(e);return d(f)}function f(b){var c=a.defer();return g(c,b),c.promise}function g(b,c){var d=i(c.except,c);a.all(d).then(function(a){b.reject(a[0])})["catch"](function(){h(b,c)})}function h(b,c){if(!c.only.length)return void b.resolve();var d=i(c.only,c);a.all(d).then(function(a){b.resolve(a)})["catch"](function(a){b.reject(a)})}function i(b,c){return b.length?b.map(function(b){var d=c.resolvePropertyValidity(b);return a.any(d).then(function(a){return angular.isArray(a)?a[0]:a})}):[a.reject()]}this.authorizeByPermissionMap=d,this.authorizeByStateName=e}function g(a){"ngInject";function b(b){var d=b.$$permissionState(),e=d.path;angular.forEach(e,function(b){if(c(b)){var d=new a(b.data.permissions);this.extendPermissionMap(d)}},this)}function c(a){return angular.isDefined(a.data)&&angular.isDefined(a.data.permissions)}return b.prototype=new a,b.prototype.extendPermissionMap=function(a){a.only.length&&(this.only=this.only.concat([a.only])),a.except.length&&(this.except=this.except.concat([a.except])),this.redirectTo=a.redirectTo},b}c.$inject=["$stateProvider"],d.$inject=["$rootScope","$state","PermTransitionProperties","PermTransitionEvents","PermStateAuthorization","PermStatePermissionMap"],e.$inject=["$delegate","$rootScope","PermTransitionProperties","PermTransitionEventNames"],f.$inject=["$q","$state","PermStatePermissionMap"],g.$inject=["PermPermissionMap"];var h=angular.module("permission.ui",["permission","ui.router"]).config(c).run(d);"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports=h.name),angular.module("permission.ui").decorator("PermTransitionEvents",e);var i={permissionStart:"$stateChangePermissionStart",permissionAccepted:"$stateChangePermissionAccepted",permissionDenies:"$stateChangePermissionDenied"};angular.module("permission.ui").value("PermTransitionEventNames",i),angular.module("permission").service("PermStateAuthorization",f),angular.module("permission.ui").factory("PermStatePermissionMap",g)}(window,window.angular); +!function(a,angular,b){"use strict";function c(a){"ngInject";a.decorator("$state",function(a){return a.self.$$permissionState=function(){return a},a})}function d(a,b,c,d,e,f){"ngInject";a.$on("$stateChangeStart",function(a,g,h,i,j,k){function l(){c.toState=g,c.toParams=h,c.fromState=i,c.fromParams=j,c.options=k}function m(a){angular.extend(g,{$$isAuthorizationFinished:a})}function n(){return g.$$isAuthorizationFinished}function o(){d.broadcastPermissionAcceptedEvent();var a=angular.extend({},c.options,{notify:!1,location:!0});b.go(c.toState.name,c.toParams,a).then(function(){d.broadcastStateChangeSuccessEvent()})}function p(a,c){d.broadcastPermissionDeniedEvent(),c.resolveRedirectState(a).then(function(a){b.go(a.state,a.params,a.options)})}if(!n())if(m(!0),l(),d.areEventsDefaultPrevented())m(!1);else{d.broadcastPermissionStartEvent(),b.transition={},a.preventDefault();var q=new f(c.toState);e.authorizeByPermissionMap(q).then(function(){o()})["catch"](function(a){p(a,q)})["finally"](function(){m(!1)})}})}function e(a,b,c,d){"ngInject";function e(){return j()}function f(){b.$broadcast(d.permissionStart,c.toState,c.toParams,c.options)}function g(){b.$broadcast(d.permissionAccepted,c.toState,c.toParams,c.options)}function h(){b.$broadcast(d.permissionDenies,c.toState,c.toParams,c.options)}function i(){b.$broadcast("$stateChangeSuccess",c.toState,c.toParams,c.fromState,c.fromParams)}function j(){return b.$broadcast(d.permissionStart,c.toState,c.toParams,c.options).defaultPrevented}return a.areEventsDefaultPrevented=e,a.broadcastStateChangeSuccessEvent=i,a.broadcastPermissionStartEvent=f,a.broadcastPermissionAcceptedEvent=g,a.broadcastPermissionDeniedEvent=h,a}function f(a,b,c){"ngInject";function d(a){return f(a)}function e(a){var e=b.get(a),f=new c(e);return d(f)}function f(b){var c=a.defer();return g(c,b),c.promise}function g(b,c){var d=i(c.except,c);a.all(d).then(function(a){b.reject(a[0])})["catch"](function(){h(b,c)})}function h(b,c){if(!c.only.length)return void b.resolve();var d=i(c.only,c);a.all(d).then(function(a){b.resolve(a)})["catch"](function(a){b.reject(a)})}function i(b,c){return b.length?b.map(function(b){var d=c.resolvePropertyValidity(b);return a.any(d).then(function(a){return angular.isArray(a)?a[0]:a})}):[a.reject()]}this.authorizeByPermissionMap=d,this.authorizeByStateName=e}function g(a){"ngInject";function b(b){var d=b.$$permissionState(),e=d.path;angular.forEach(e,function(b){if(c(b)){var d=new a(b.data.permissions);this.extendPermissionMap(d)}},this)}function c(a){try{return Object.prototype.hasOwnProperty.call(a.data,"permissions")}catch(b){return!1}}return b.prototype=new a,b.prototype.extendPermissionMap=function(a){a.only.length&&(this.only=this.only.concat([a.only])),a.except.length&&(this.except=this.except.concat([a.except])),this.redirectTo=a.redirectTo},b}c.$inject=["$stateProvider"],d.$inject=["$rootScope","$state","PermTransitionProperties","PermTransitionEvents","PermStateAuthorization","PermStatePermissionMap"],e.$inject=["$delegate","$rootScope","PermTransitionProperties","PermTransitionEventNames"],f.$inject=["$q","$state","PermStatePermissionMap"],g.$inject=["PermPermissionMap"];var h=angular.module("permission.ui",["permission","ui.router"]).config(c).run(d);"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports=h.name),angular.module("permission.ui").decorator("PermTransitionEvents",e);var i={permissionStart:"$stateChangePermissionStart",permissionAccepted:"$stateChangePermissionAccepted",permissionDenies:"$stateChangePermissionDenied"};angular.module("permission.ui").value("PermTransitionEventNames",i),angular.module("permission").service("PermStateAuthorization",f),angular.module("permission.ui").factory("PermStatePermissionMap",g)}(window,window.angular); //# sourceMappingURL=angular-permission-ui.min.js.map \ No newline at end of file diff --git a/dist/angular-permission-ui.min.js.map b/dist/angular-permission-ui.min.js.map index e358b72..d23f8dc 100644 --- a/dist/angular-permission-ui.min.js.map +++ b/dist/angular-permission-ui.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["angular-permission-ui.js"],"names":["window","angular","undefined","config","$stateProvider","decorator","state","self","$$permissionState","run","$rootScope","$state","PermTransitionProperties","PermTransitionEvents","PermStateAuthorization","PermStatePermissionMap","$on","event","toState","toParams","fromState","fromParams","options","setTransitionProperties","setStateAuthorizationStatus","status","extend","$$isAuthorizationFinished","isAuthorizationFinished","handleAuthorizedState","broadcastPermissionAcceptedEvent","transitionOptions","notify","location","go","name","then","broadcastStateChangeSuccessEvent","handleUnauthorizedState","rejectedPermission","statePermissionMap","broadcastPermissionDeniedEvent","resolveRedirectState","redirect","params","areEventsDefaultPrevented","broadcastPermissionStartEvent","transition","preventDefault","authorizeByPermissionMap","$delegate","PermTransitionEventNames","isStateChangePermissionStartDefaultPrevented","isStateChangeStartDefaultPrevented","$broadcast","permissionStart","permissionAccepted","permissionDenies","defaultPrevented","$q","authorizeStatePermissionMap","authorizeByStateName","stateName","srefState","get","permissionMap","map","deferred","defer","resolveExceptStatePermissionMap","promise","exceptPromises","resolveStatePermissionMap","except","all","rejectedPermissions","reject","resolveOnlyStatePermissionMap","only","length","resolve","onlyPromises","resolvedPermissions","privilegesNames","statePrivileges","resolvedStatePrivileges","resolvePropertyValidity","any","isArray","this","PermPermissionMap","StatePermissionMap","toStateObject","toStatePath","path","forEach","areSetStatePermissions","data","permissions","extendPermissionMap","isDefined","prototype","concat","redirectTo","$inject","uiPermission","module","exports","value","service","factory"],"mappings":";;;;;;;;;;CASC,SAAUA,EAAQC,QAASC,GAC1B,YAeA,SAASC,GAAOC,GACd,UAEAA,GAAeC,UAAU,SAAU,SAAUC,GAa3C,MAJAA,GAAMC,KAAKC,kBAAoB,WAC7B,MAAOF,IAGFA,IAYX,QAASG,GAAIC,EAAYC,EAAQC,EAA0BC,EAAsBC,EAAwBC,GACvG,UAKAL,GAAWM,IAAI,oBAAqB,SAAUC,EAAOC,EAASC,EAAUC,EAAWC,EAAYC,GAkC7F,QAASC,KACPX,EAAyBM,QAAUA,EACnCN,EAAyBO,SAAWA,EACpCP,EAAyBQ,UAAYA,EACrCR,EAAyBS,WAAaA,EACtCT,EAAyBU,QAAUA,EAUrC,QAASE,GAA4BC,GACnCxB,QAAQyB,OAAOR,GACbS,0BAA6BF,IAWjC,QAASG,KACP,MAAOV,GAAQS,0BAQjB,QAASE,KACPhB,EAAqBiB,kCAGrB,IAAIC,GAAoB9B,QAAQyB,UAAWd,EAAyBU,SAClEU,QAAQ,EACRC,UAAU,GAGZtB,GACGuB,GAAGtB,EAAyBM,QAAQiB,KAAMvB,EAAyBO,SAAUY,GAC7EK,KAAK,WACJvB,EAAqBwB,qCAY3B,QAASC,GAAwBC,EAAoBC,GACnD3B,EAAqB4B,iCAErBD,EACGE,qBAAqBH,GACrBH,KAAK,SAAUO,GACdhC,EAAOuB,GAAGS,EAASrC,MAAOqC,EAASC,OAAQD,EAASrB,WAnG1D,IAAKM,IAIH,GAHAJ,GAA4B,GAC5BD,IA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AU9F,EAAM2F,OAAShG,QAAQmG,UAAU9F,EAAM2F,KAAKC,aAGvE,MA/CAP,GAAmBU,UAAY,GAAIX,GAyBnCC,EAAmBU,UAAUF,oBAAsB,SAAUlC,GACvDA,EAAca,KAAKC,SACrBU,KAAKX,KAAOW,KAAKX,KAAKwB,QAAQrC,EAAca,QAE1Cb,EAAcQ,OAAOM,SACvBU,KAAKhB,OAASgB,KAAKhB,OAAO6B,QAAQrC,EAAcQ,UAElDgB,KAAKc,WAAatC,EAAcsC,YAe3BZ,EA3dTxF,EAAOqG,SAAW,kBAClB/F,EAAI+F,SAAW,aAAc,SAAU,2BAA4B,uBAAwB,yBAA0B,0BACrH3F,EAAqB2F,SAAW,YAAa,aAAc,2BAA4B,4BACvF1F,EAAuB0F,SAAW,KAAM,SAAU,0BAClDzF,EAAuByF,SAAW,oBA+IlC,IAAIC,GAAexG,QAChByG,OAAO,iBAAkB,aAAc,cACvCvG,OAAOA,GACPM,IAAIA,EAEe,oBAAXiG,SAA6C,mBAAZC,UAA2BD,OAAOC,UAAYA,UACxFD,OAAOC,QAAUF,EAAatE,MAwGhClC,QACGyG,OAAO,iBACPrG,UAAU,uBAAwBQ,EAYrC,IAAIsC,IACFI,gBAAiB,8BACjBC,mBAAoB,iCACpBC,iBAAkB,+BAGpBxD,SACGyG,OAAO,iBACPE,MAAM,2BAA4BzD,GAsIrClD,QACGyG,OAAO,cACPG,QAAQ,yBAA0B/F,GA+DrCb,QACGyG,OAAO,iBACPI,QAAQ,yBAA0B/F,IAErCf,OAAQA,OAAOC","file":"angular-permission-ui.min.js"} \ No newline at end of file +{"version":3,"sources":["angular-permission-ui.js"],"names":["window","angular","undefined","config","$stateProvider","decorator","state","self","$$permissionState","run","$rootScope","$state","PermTransitionProperties","PermTransitionEvents","PermStateAuthorization","PermStatePermissionMap","$on","event","toState","toParams","fromState","fromParams","options","setTransitionProperties","setStateAuthorizationStatus","status","extend","$$isAuthorizationFinished","isAuthorizationFinished","handleAuthorizedState","broadcastPermissionAcceptedEvent","transitionOptions","notify","location","go","name","then","broadcastStateChangeSuccessEvent","handleUnauthorizedState","rejectedPermission","statePermissionMap","broadcastPermissionDeniedEvent","resolveRedirectState","redirect","params","areEventsDefaultPrevented","broadcastPermissionStartEvent","transition","preventDefault","authorizeByPermissionMap","$delegate","PermTransitionEventNames","isStateChangePermissionStartDefaultPrevented","$broadcast","permissionStart","permissionAccepted","permissionDenies","defaultPrevented","$q","authorizeStatePermissionMap","authorizeByStateName","stateName","srefState","get","permissionMap","map","deferred","defer","resolveExceptStatePermissionMap","promise","exceptPromises","resolveStatePermissionMap","except","all","rejectedPermissions","reject","resolveOnlyStatePermissionMap","only","length","resolve","onlyPromises","resolvedPermissions","privilegesNames","statePrivileges","resolvedStatePrivileges","resolvePropertyValidity","any","isArray","this","PermPermissionMap","StatePermissionMap","toStateObject","toStatePath","path","forEach","areSetStatePermissions","data","permissions","extendPermissionMap","Object","prototype","hasOwnProperty","call","e","concat","redirectTo","$inject","uiPermission","module","exports","value","service","factory"],"mappings":";;;;;;;;;;CASC,SAAUA,EAAQC,QAASC,GAC1B,YAeA,SAASC,GAAOC,GACd,UAEAA,GAAeC,UAAU,SAAU,SAAUC,GAa3C,MAJAA,GAAMC,KAAKC,kBAAoB,WAC7B,MAAOF,IAGFA,IAYX,QAASG,GAAIC,EAAYC,EAAQC,EAA0BC,EAAsBC,EAAwBC,GACvG,UAKAL,GAAWM,IAAI,oBAAqB,SAAUC,EAAOC,EAASC,EAAUC,EAAWC,EAAYC,GAkC7F,QAASC,KACPX,EAAyBM,QAAUA,EACnCN,EAAyBO,SAAWA,EACpCP,EAAyBQ,UAAYA,EACrCR,EAAyBS,WAAaA,EACtCT,EAAyBU,QAAUA,EAUrC,QAASE,GAA4BC,GACnCxB,QAAQyB,OAAOR,GACbS,0BAA6BF,IAWjC,QAASG,KACP,MAAOV,GAAQS,0BAQjB,QAASE,KACPhB,EAAqBiB,kCAGrB,IAAIC,GAAoB9B,QAAQyB,UAAWd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QF,EAAa,SAAUtF,GACrC,GAAIyF,EAAuBzF,GAAQ,CACjC,GAAI0D,GAAgB,GAAIyB,GAAkBnF,EAAM0F,KAAKC,YACrDT,MAAKU,oBAAoBlC,KAE1BwB,MA4BL,QAASO,GAAuBzF,GAC9B,IACE,MAAO6F,QAAOC,UAAUC,eAAeC,KAAKhG,EAAM0F,KAAM,eACxD,MAAOO,GACP,OAAO,GAIX,MApDAb,GAAmBU,UAAY,GAAIX,GAyBnCC,EAAmBU,UAAUF,oBAAsB,SAAUlC,GACvDA,EAAca,KAAKC,SACrBU,KAAKX,KAAOW,KAAKX,KAAK2B,QAAQxC,EAAca,QAE1Cb,EAAcQ,OAAOM,SACvBU,KAAKhB,OAASgB,KAAKhB,OAAOgC,QAAQxC,EAAcQ,UAElDgB,KAAKiB,WAAazC,EAAcyC,YAoB3Bf,EAldTvF,EAAOuG,SAAW,kBAClBjG,EAAIiG,SAAW,aAAc,SAAU,2BAA4B,uBAAwB,yBAA0B,0BACrH7F,EAAqB6F,SAAW,YAAa,aAAc,2BAA4B,4BACvF5F,EAAuB4F,SAAW,KAAM,SAAU,0BAClD3F,EAAuB2F,SAAW,oBA+IlC,IAAIC,GAAe1G,QAChB2G,OAAO,iBAAkB,aAAc,cACvCzG,OAAOA,GACPM,IAAIA,EAEe,oBAAXmG,SAA6C,mBAAZC,UAA2BD,OAAOC,UAAYA,UACxFD,OAAOC,QAAUF,EAAaxE,MA0FhClC,QACG2G,OAAO,iBACPvG,UAAU,uBAAwBQ,EAYrC,IAAIsC,IACFG,gBAAiB,8BACjBC,mBAAoB,iCACpBC,iBAAkB,+BAGpBvD,SACG2G,OAAO,iBACPE,MAAM,2BAA4B3D,GAsIrClD,QACG2G,OAAO,cACPG,QAAQ,yBAA0BjG,GAoErCb,QACG2G,OAAO,iBACPI,QAAQ,yBAA0BjG,IAErCf,OAAQA,OAAOC","file":"angular-permission-ui.min.js"} \ No newline at end of file diff --git a/dist/angular-permission.js b/dist/angular-permission.js index f223aa1..9cf213c 100644 --- a/dist/angular-permission.js +++ b/dist/angular-permission.js @@ -1,7 +1,7 @@ /** * angular-permission * Fully featured role and permission based access control for your angular applications - * @version v4.1.0 - 2016-10-19 + * @version v4.1.1 - 2016-10-21 * @link https://github.com/Narzerus/angular-permission * @author Rafael Vidaurre (http://www.rafaelvidaurre.com), Blazej Krysiak * @license MIT License, http://www.opensource.org/licenses/MIT diff --git a/dist/angular-permission.min.js b/dist/angular-permission.min.js index 81eeebf..4c1483f 100644 --- a/dist/angular-permission.min.js +++ b/dist/angular-permission.min.js @@ -1,7 +1,7 @@ /** * angular-permission * Fully featured role and permission based access control for your angular applications - * @version v4.1.0 - 2016-10-19 + * @version v4.1.1 - 2016-10-21 * @link https://github.com/Narzerus/angular-permission * @author Rafael Vidaurre (http://www.rafaelvidaurre.com), Blazej Krysiak * @license MIT License, http://www.opensource.org/licenses/MIT diff --git a/index.js b/index.js index 157a358..9b89a07 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ /** * angular-permission * Fully featured role and permission based access control for your angular applications - * @version v4.1.0 - 2016-10-19 + * @version v4.1.1 - 2016-10-21 * @link https://github.com/Narzerus/angular-permission * @author Rafael Vidaurre (http://www.rafaelvidaurre.com), Blazej Krysiak * @license MIT License, http://www.opensource.org/licenses/MIT diff --git a/package.json b/package.json index 81b7062..aed083f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-permission", - "version": "4.1.0", + "version": "4.1.1", "description": "Fully featured role and permission based access control for your angular applications", "author": { "name": "Rafael Vidaurre",