USERS (ROLES) - kryvtsunt/movie-angular GitHub Wiki
Anonymous User
User is anonymous until he is not logged in/registered. This type of User can freely navigate through all links in the navigation bar. He can search fro a movie from any page, or go to the Advanced Search to Search or Discover movies by Genres, Released date, and sorted in different orders (by popularity/by average grade/ etc). He can view content of each movie and view reviews written by other users, but he cannot like/bookmark/review movies; he also cannot view users'profiles.
Regular User (alice/alice)
User becomes Regular User when he logs in to the app by providing his credentials. When logged in User can like/bookmark/review movies; he also can goes to other users' profiles to check their favorite movies and follow them. Every time User does any action on the movie (like/bookmark/review), the instance of the movie is created at the app's DB (information is copied from external api).
Admin (admin/admin)
Admin User has all the same functionality as the Regular User, but he can also go to the admin panel to manage the whole movie application. In the admin panel administrator has 3 tabs: Users, Movies, Logs. In the Users tab Administrator can add/remove/edit users. In the Movies tab Administrator can edit and delete movies that were added to the app's db. The edited information about the movie can be viewed by all users when they search for that movie. In the Logs tab Administrator can see all users' activity (every time user likes/unlikes/bookmarks/etc a movie, this information is stored in the logs).
Every time any other user than admin tries to get to the admin page by hardcoding the url, he gets an error