dist/angular-permission.js
function onUnauthorizedAccess() {
          if (angular.isFunction(permission.onUnauthorized)) {
            permission.onUnauthorized()($element);
          } else {
            var onUnauthorizedMethodName = $permission.defaultOnUnauthorizedMethod;
            PermPermissionStrategies[onUnauthorizedMethodName]($element);
          }
        }
function onUnauthorizedAccess() {
          if (angular.isFunction(permission.onUnauthorized)) {
            permission.onUnauthorized()($element);
          } else {
            var onUnauthorizedMethodName = $permission.defaultOnUnauthorizedMethod;
            PermPermissionStrategies[onUnauthorizedMethodName]($element);
          }
        }
function onUnauthorizedAccess ( ) { if ( angular . isFunction ( permission . onUnauthorized ) ) { permission . onUnauthorized ( ) ( $element ) ; } else { var onUnauthorizedMethodName = $permission . defaultOnUnauthorizedMethod ; PermPermissionStrategies [ onUnauthorizedMethodName ] ( $element ) ; } }
Calls `onUnauthorized` function if provided or hide element
@private
Calls onUnauthorized function if provided or hide element