php - How to implement feature tracking? -
we begin development of application in laravel 5.1 requires tracking of every feature present in application , consequent granting of user access on fly.
say eg - photos feature in application. owner can upload, view, delete, edit pictures. manager can have permission upload , view pictures (the other options though available, result in pop explaining restriction carry out action).
architecture wise, have decided have database table listing features , id associated them. there table mapping user feature.
however part struggling decide how track feature user trying access.
our possible options till -
- aspect oriented programming. have join points defined , check user permission before method execution.
- storing feature id in session , using same on every call server check if user can access using mapping table
which of above 2 better approach ? other better approach possible ?
Comments
Post a Comment