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 -

  1. aspect oriented programming. have join points defined , check user permission before method execution.
  2. 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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -