Skip to content

LLD for user permissions in a hierarchal relationship.

Notifications You must be signed in to change notification settings

tr1ppyb0y/Permissions

Repository files navigation

Permissions

LLD for user permissions in a hierarchal relationship.

Company hierarchy.

Steps to test:

  1. Install the requirements.txt file.
  2. Go to shell, python manage.py shell, and execute following commands,
from user.models import CustomUser
user = CustomUser.objects.last()
user.my_permissions()
  1. Database is included for the convenience, spin-up the server and login with, id:pass -> admin:admin
  2. Change the level of the user to Plant or Company or HeadQuater and check the users permissions by executing commands in step 2.

This project display my skills to write clean and reusable code. Apart from that it also shows how efficiently I can incorporate in-built or otherwise data structures with business logic.

About

LLD for user permissions in a hierarchal relationship.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages