Simple access control in PHP

Software requiring restriction of certain features needs a mean to positively match the current action with the current user. Some of those means use in-code checks :

against so-called « access-levels », where each user is given a rank (usually an integer), which is compared to a « lowest required access level » for a given

Continue reading « Simple access control in PHP »