Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PT
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Ali Arshad
PT
Commits
4d5a4ebd
Commit
4d5a4ebd
authored
Jan 31, 2018
by
Ali Arshad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting fixes
parent
03668d01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app.guard.ts
src/app/routes/app.guard.ts
+2
-2
No files found.
src/app/routes/app.guard.ts
View file @
4d5a4ebd
...
...
@@ -10,8 +10,8 @@ export class AppGuard implements CanActivate {
canActivate
(
next
:
ActivatedRouteSnapshot
,
state
:
RouterStateSnapshot
)
{
let
roles
=
next
.
data
[
'roles'
];
let
user
:
any
=
{};
// const roles = next.data['roles']; // would be used later
// const user: any = {}; // would be used later
// specify route protection logic below
if
(
1
)
{
// logged in so return true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment