SocialHackersClass10 / ChalleduApp

This repository contains the Code of the project, ChalleduApp, as a result of the collaboration between SHA-students of Class 10 & Challedu.com.
1 stars 5 forks source link

105-Restrict-routes-depending-on-role #111

Closed Manolispro closed 4 years ago

Manolispro commented 4 years ago

5 new components 1.Nopermission renders when all users exept admins try to see tha alluserslist(with path or with admin button) 2.PageNotFound renders for wrong path but now it renders and for the paths that are not connected with route (ex. userprofile and ngo profile 3.RedirectToNotFound

  1. RouteForAll render the components tha all have access to
  2. RouteOnlyForAdmins render the components that admins can access