Index: PostgreSqlDotnetCore/Controllers/CustomerController.cs
===================================================================
--- PostgreSqlDotnetCore/Controllers/CustomerController.cs	(revision a3ce071e97bad04f989c769589a31427febe9ff3)
+++ PostgreSqlDotnetCore/Controllers/CustomerController.cs	(revision 2aea0fddc0f6d0c25f0d44044eeb2ec5930012b9)
@@ -19,11 +19,5 @@
         public async Task<ActionResult> IndexAsync()
         {
-           UsersClass customerClass = await getCrrentUser();
-           
-            ViewBag.isAuthenticated = User.Identity.IsAuthenticated;
-            ViewBag.CanCreate = customerClass.role_id == RoleConstants.Admin || customerClass.role_id == RoleConstants.Manager;
-            // no access for standard user
-            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
-
+            UsersClass customerClass = await getCrrentUser();
             if (customerClass == null)
             {
@@ -32,5 +26,4 @@
             if (customerClass.role_id == RoleConstants.Standard)
             {
-                // searching from DB 
                 
                 var query = from st in db.CustomerObj
@@ -47,6 +40,5 @@
                 return View(db.CustomerObj.ToList());
             }
-
-
+          
         }
 
@@ -64,5 +56,4 @@
             // check for permission
             UsersClass customerClass = await getCrrentUser();
-            ViewBag.isAuthenticated = customerClass;
             if (customerClass == null)
             {
@@ -75,7 +66,4 @@
                 return RedirectToAction("NotExist", "Error");
             }
-            // no access for standard user
-            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
-
             return View(customerClass);
         }
@@ -84,17 +72,10 @@
         public async Task<ActionResult> CreateAsync()
         {
-            //ViewBag.CanCreate = customerClass.role_id == RoleConstants.Admin || customerClass.role_id == RoleConstants.Manager;
-
             // check for permission
-            UsersClass customerClass = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
-            //dodano na 23.08
-            ViewBag.isAuthenticated = await getCrrentUser();
+            UsersClass customerClass = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin);
             if (customerClass == null)
             {
                 return RedirectToAction("AccessDenied", "Error");
             }
-            // no access for standard user
-            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
-
 
             return View();
@@ -143,5 +124,4 @@
 
             customerClass = db.CustomerObj.Find(id);
-            ViewBag.isAuthenticated = await getCrrentUser();
             if (customerClass == null)
             {
@@ -149,7 +129,4 @@
                 //return HttpNotFound();
             }
-            // no access for standard user
-            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
-
             return View(customerClass);
         }
@@ -181,12 +158,8 @@
             }
             UsersClass customerClass = await getCrrentUser();
-            ViewBag.isAuthenticated = await getCrrentUser();
             if (customerClass == null)
             {
                 return RedirectToAction("AccessDenied", "Error");
             }
-            
-            // no access for standard user
-            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
             return View(customerClass);
         }
