Index: PostgreSqlDotnetCore/Controllers/CityController.cs
===================================================================
--- PostgreSqlDotnetCore/Controllers/CityController.cs	(revision 57fc40271dfe03c973365d9799d1dbf2d4360b8f)
+++ PostgreSqlDotnetCore/Controllers/CityController.cs	(revision 118e414d91bed6d2f18476304a58e95728403f8c)
@@ -16,19 +16,21 @@
         // GET: Customer
         public async Task<ActionResult> IndexAsync()
-         {
-           // check for permission
-          UsersClass customerClass = await checkAuthorizationAsync();
+        {
+            // check for permission
+            UsersClass customerClass = await checkAuthorizationAsync();
+            ViewBag.isAuthenticated = User.Identity.IsAuthenticated;
 
-
-           if (customerClass == null)
-             {
-                 return RedirectToAction("AccessDenied", "Error");
-             }
+            if (customerClass == null)
+            {
+                return RedirectToAction("AccessDenied", "Error");
+            }
 
             var citiess = await db.CitiesObj.ToListAsync();
+            // проба на 23.08
+            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
 
             return View(citiess);
         }
-       
+
 
 
@@ -50,5 +52,6 @@
 
         // GET: Customer/Details/5
-        public ActionResult Details(int? id)
+        //public ActionResult Details(int? id)
+        public async Task<ActionResult> Details(int? id)
         {
             if (id == null)
@@ -57,8 +60,13 @@
             }
             CitiesClass cityClass = db.CitiesObj.Find(id);
+            UsersClass customerClass = await getCrrentUser();
+            ViewBag.isAuthenticated = customerClass;
             if (cityClass == null)
             {
                 return RedirectToAction("NotExist", "Error");
             }
+            // no access for standard user
+            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
+
             return View(cityClass);
         }
@@ -70,7 +78,11 @@
         //}
 
-        public ActionResult Create()
+        //public ActionResult Create()
+        public async Task<ActionResult> CreateAsync()
         {
-            
+            UsersClass customerClass = await getCrrentUser();
+            // set if is authenticated
+            ViewBag.isAuthenticated = customerClass;
+            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
             return View();
         }
@@ -83,4 +95,5 @@
         public ActionResult Create([Bind(include: "id,name")] CitiesClass cityClass)
         {
+
             if (ModelState.IsValid)
             {
@@ -94,5 +107,6 @@
 
         // GET: Customer/Edit/5
-        public ActionResult Edit(int? id)
+        //  public ActionResult Edit(int? id)
+        public async Task<ActionResult> Edit(int? id)
         {
             if (id == null)
@@ -101,8 +115,13 @@
             }
             CitiesClass cityClass = db.CitiesObj.Find(id);
+            //22.08
+            ViewBag.isAuthenticated = await getCrrentUser();
             if (cityClass == null)
             {
                 return RedirectToAction("NotExist", "Error");
             }
+            // no access for standard user
+            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
+
             return View(cityClass);
         }
@@ -125,6 +144,11 @@
 
         // GET: Customer/Delete/5
-        public ActionResult Delete(int? id)
+        // public ActionResult Delete(int? id)
+        public async Task<ActionResult> Delete(int? id)
         {
+
+            UsersClass customerClass = await checkAuthorizationAsync();
+
+            ViewBag.isAuthenticated = await getCrrentUser();
             if (id == null)
             {
@@ -136,4 +160,7 @@
                 return RedirectToAction("NotExist", "Error");
             }
+            // no access for standard user
+            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
+
             return View(cityClass);
         }
@@ -161,5 +188,5 @@
 
 
-        
+
     }
 }
