Here's my problem: I'm working on an application where the users have certain rights. Depending on these rights, they would have access to some functions.
My problem is that I would have to test for every case if the user has the rights or not and enable it or not. For a big app, this task is quite tiring. I want to ask if there is a design pattern or library that simplifies the management of this. My goal is to disable buttons when the user does not have proper permissions.