I am trying to implement an ACL Assert Interface.
I have a resource "Article."
An article can be editable by a user *if and only if* the article was
originally written by the user.
I would like to use ACL Assert Interface (unless you have other
suggestions).
MyAssertion($acl, Zend_Db_Table_Row $row)
{
return ($row->findParentUsers()->getCurrent()->id ==
Zend_Auth::GetInstance()->getIdentity->id);
}
To sum it up, I am passing a DB Table row. The row is owned by a user. I
check to see if the row's owner is the same as the logged in user. if so,
assert true.
Anyway, I get the error that my Assert Interface is not compatible with the
base class.
What gives?
--
View this message in context:
http://www.nabble.com/Zend_Acl_Assert_Interface-not-compatible-tp22633000p22633000.html
Sent from the Zend Framework mailing list archive at Nabble.com.