kristovaher / Wave-Framework

Open Source API-centric PHP Framework
https://github.com/kristovaher/Wave-Framework
GNU Lesser General Public License v3.0
2 stars 0 forks source link

Labels for user accounts and API profiles #155

Open kristovaher opened 10 years ago

kristovaher commented 10 years ago

Add API-profile and user-account 'labels'. Then, controllers can check if a specific account has a specific label set. This is done similarly to how permissions are checked, except it is a straight match (either yes or no), for example:

labels = 'debugging,!admin'

Which would allow to check for debugging label, but requires that the account does not have 'admin' label.