Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.setIsUserAuthneticated = function(value) {
- $rootScope.isUserAutnenticated = value;
- this.isUserAutnenticated = value;
- };
- this.getIsUserAuthneticated = function() {
- if (typeof Session.get('user') !== 'undefined' && Session.get('user') !== null) {
- this.setIsUserAuthneticated(true);
- }
- return this.isUserAutnenticated;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement