
Originally Posted by
lastcraft
How closely do you want to stick to the spec?
We don't have to stick to the spec, but I don't see anything horrible about it.
Two questions:
What is wrong with a user object? To me something like:
PHP Code:
if ($user->hasPermission('edit', 'article')) {
}
is self-documenting. A User is a real world entity that has roles and permissions, etc... It is almost directly codifying the question that we want to ask: "Does this user have permission to do this operation on this object?"
Secondly, what is wrong with unique identifiers?
Thanks,
JT
Bookmarks