Ignore:
Timestamp:
08/22/24 01:46:17 (3 months ago)
Author:
ElenaMoskova <elena.moskova99@…>
Branches:
main
Children:
72b1da2
Parents:
d6040ef
Message:

Аsync, access permission, and other fixes.

Regulation of access permissions. Which fields can be accessed by different users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • PostgreSqlDotnetCore/Controllers/ProductsController.cs

    rd6040ef r57fc402  
    4646
    4747        // GET: Customer/Details/5
    48         public ActionResult Details(int? id)
     48        public async Task<ActionResult> Details(int? id)
    4949        {
    5050            if (id == null)
     
    5252                return RedirectToAction("NotExist", "Error");
    5353            }
     54            UsersClass customerClass = await getCrrentUser();
     55            ViewBag.isAuthenticated = customerClass;
    5456            ProductsClass prodClass = db.ProductObj.Find(id);
    5557            if (prodClass == null)
Note: See TracChangeset for help on using the changeset viewer.