Hi genius brethern,
I have an admin application that has multiple user types and various objects. What I’d like to do is control access within the object itself - that is, it will behave one way for one type of user, and another way for other users. For example…
Director Mike can override Reception user Sally’s registration date. One would assume that Mike could set any date both in the past or in the future. Then we have Payroll user Steve who can also modify Sally’s registration date, but only for dates in the past up until (for example) one year ago. To spice things up, then we have the HR Manager Mary who can also amend Sally’s registration date, but only for dates from precisely 23rd June 2007 up until one month from now…
How can I program the access restrictions so that on the front end, the form control is restricted with a min and max date, and in the backend, the validator checks the entered date to make sure it falls between those dates? I’d obviously need to be able to tweak the min and max dates for each user type. Other objects might have different parameters - maximum amount on a discount field or days of the week for overtime, for example.
I’ve trawled through all the major frameworks to see if they have this type of thing, but alas, no. AXO’s in phpGACL come close, but no cigar…
What do you even call this type of access control…?