Changeset 118e414 for PostgreSqlDotnetCore/Controllers/ErrorController.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/ErrorController.cs
r72b1da2 r118e414 4 4 using Microsoft.AspNetCore.Identity; 5 5 using Microsoft.AspNetCore.Mvc; 6 using PostgreSqlDotnetCore.Models; 6 7 using System.Threading.Tasks; 7 8 … … 17 18 // set if is authenticated 18 19 ViewBag.isAuthenticated = await getCrrentUser(); 20 // no access for standard user 21 ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager); 22 19 23 return View(); 20 24 } … … 24 28 // set if is authenticated 25 29 ViewBag.isAuthenticated = await getCrrentUser(); 30 // no access for standard user 31 ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager); 32 26 33 return View(); 27 34 }
Note:
See TracChangeset
for help on using the changeset viewer.