Forum OpenACS Development: User has know permission to its object_id

Request notifications

Hi there,
I've read the documentation, I understand how permissions function, but still, I was wondering why ad_proc permission::permission_p would return 1 to the user itself as admin of its own object_id ?

permission::permission_p -party_id $user_id -object_id $user_id -privilege admin

https://openacs.org/doc/configuring-configuring-permissions

https://openacs.org/api-doc/proc-view?proc=permission::permission_p&source_p=1

Best wishes,

Collapse
Posted by Iuri Sampaio on
I may use ad_proc permission::write_permission_p -object_id $user_id -party_id $user_id. I returns 1 as expected.
Collapse
Posted by Gustaf Neumann on
You can check the permissions on the /permissions page (part of acs-subsite). if you check for permissions for your own user_id, you will see that there are direct permissions for "read" and "write", but not for "admin". Nothing hinders you to give other privileges (like "admin") to a user as well.