Changeset 118e414 for PostgreSqlDotnetCore/Controllers/HomeController.cs
- Timestamp:
- 08/23/24 15:40:14 (2 months ago)
- Branches:
- main
- Children:
- e9bb9d1
- Parents:
- 72b1da2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Controllers/HomeController.cs
r72b1da2 r118e414 59 59 // set if is authenticated 60 60 ViewBag.isAuthenticated = await getCrrentUser(); 61 // проба на 23.08 62 // no access for standard user 63 ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager); 64 61 65 } 62 66 … … 75 79 // set if is authenticated 76 80 ViewBag.isAuthenticated = await getCrrentUser(); 81 // no access for standard user 82 ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager); 83 77 84 return View(); 78 85 } … … 81 88 // set if is authenticated 82 89 ViewBag.isAuthenticated = await getCrrentUser(); 90 // no access for standard user 91 ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager); 92 83 93 return View(); 84 94 }
Note:
See TracChangeset
for help on using the changeset viewer.