by CiPHPerCoder · 8y ago · 0 comments
In my CMS, I had support for granular permissions. So you could do this:
if ($user->can('update')) {
if ($postData) {
$this->processUpdate($postData);
}
// display edit form
} elseif ($user->can('read')) {
// read-only
} else {
return error_403_condition();
}
JWT wouldn't have helped much.