- Timestamp:
- 08/20/24 16:13:49 (3 months ago)
- Branches:
- main
- Children:
- 63bd770
- Parents:
- 8f8226c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Controllers/ProductsController.cs
r8f8226c r6782104 16 16 public ProductsController(UserManager<IdentityUser> userManager) : base(userManager) 17 17 { 18 // set if is authenticated 19 ViewBag.isAuthenticated = new UsersClass(); 18 20 } 19 21 … … 28 30 public ActionResult Index(string? searchString) 29 31 { 32 // set if is authenticated 33 ViewBag.isAuthenticated = new UsersClass(); 30 34 if (!String.IsNullOrEmpty(searchString)) 31 35 { … … 67 71 // check for permission 68 72 UsersClass customerClass = await checkAuthorizationAsync(); 73 // set if is authenticated 74 ViewBag.isAuthenticated = await getCrrentUser(); 75 69 76 if (customerClass == null) 70 77 { … … 100 107 } 101 108 102 103 104 105 106 107 108 109 110 111 112 109 // GET: Customer/Edit/5 113 110 public async Task<ActionResult> EditAsync(int? id) … … 118 115 } 119 116 UsersClass customerClass = await checkAuthorizationAsync(); 117 // set if is authenticated 118 ViewBag.isAuthenticated = await getCrrentUser(); 119 120 120 if (customerClass == null) 121 121 { … … 154 154 } 155 155 UsersClass customerClass = await checkAuthorizationAsync(); 156 // set if is authenticated 157 ViewBag.isAuthenticated = await getCrrentUser(); 158 156 159 if (customerClass == null) 157 160 {
Note:
See TracChangeset
for help on using the changeset viewer.