I got this error when i set Owner method in permission file
[
‘role’=>‘user’,
‘controller’=>[‘Users’],
‘action’=>[‘edit’,‘delete’],
‘allowed’=>new Owner()
]
In user table i set memberid instead id. id column also exist in user as primary key but memberid is also there just random number generate before save into database. memberid save as foreign key in department table like user_id and event i set memberid as primary key in user table $this->setPrimaryKey(‘memberid’) like this. but got error during i edit user and department record…Missing column user_id in table Users while checking ownership permissions for user.
Because RBAC plugin compare with ID not WIth memberid so please tell me to set memberid instead id for RBAC