Skip to content

Commit b96a457

Browse files
author
Costica Puntaru
committed
fixing missing param error
1 parent 8043f69 commit b96a457

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/permission.svc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@
8383

8484
// If no roles left to validate reject promise
8585
if (!currentRole) {
86-
deferred.reject();
87-
return deferred.promise;
86+
return $q.reject();
8887
}
8988
// Validate role definition exists
9089
if (!angular.isFunction(Permission.roleValidations[currentRole])) {

0 commit comments

Comments
 (0)