So I have just sorted authentication (with a Django backend) and want control the display of certain parts (or sub parts) of an app.
I was just going to load in a permissions list which i get from Django, which is just a list of strings, one for each permission, and store this with the users profile. Seems easy enough.
I guess then i would create a component that simply checks the given permissions list for one in particular and renders its children or not (or some alternative i.e. “You can’t handle the truth” etc)?
Has someone done anything like this? Is this a good strategy? Is there a major flaw in this thinking? Has someone done this before for Django and it will take me 5 minutes to setup an get on to the cool stuff…?