- 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/ProductsController.cs
r72b1da2 r118e414 31 31 ViewBag.isAuthenticated = await getCrrentUser(); 32 32 ViewBag.hasAccess = await checkAuthorizationAsync(); 33 // no access for standard user 34 ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager); 35 33 36 if (!String.IsNullOrEmpty(searchString)) 34 37 { … … 59 62 return RedirectToAction("NotExist", "Error"); 60 63 } 64 // no access for standard user 65 ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager); 66 61 67 return View(prodClass); 62 68 } … … 79 85 return RedirectToAction("AccessDenied", "Error"); 80 86 } 87 // no access for standard user 88 ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager); 89 81 90 var model = new ProductsClass 82 91 {
Note:
See TracChangeset
for help on using the changeset viewer.