Everett Reply #1, 6 months ago
I know this has been discussed before (and sorry that my google-shui sucks because I can't find the links to some previous discussions that I know I bookmarked), but it's an interesting use-case that is worth discussing.
Basically, the desire is this: let a user log in and edit only pages that they themselves have authored. It'd be relatively easy to check this sort of thing if you were building your own editing form: just check the user ID of the currently logged in user, and only let them edit documents where their user is referenced in the createdby column.
I've been scanning through the policy templates, but I don't see anything that covers this. I can of course, create a user group and a resource group, and grant appropriate access between them, but that will get cumbersome when we're potentially considering thousands of users.
What we need is something like a "virtual user group" and a "virtual resource group"... a shorthand way of granting the necessary permissions based on the user id instead of by traditional User Group/Resource Group. Each user may have created a handful of pages, but they'd need the ability to edit them all, and ONLY those pages.
If there's an obvious way of doing this, someone please feel free to smack me upside the head, but right now I'm wondering the best approach. Is there an event that we can tie a plugin to do this type of thing on the fly?
Any ideas are most welcome. Thanks as always.
Basically, the desire is this: let a user log in and edit only pages that they themselves have authored. It'd be relatively easy to check this sort of thing if you were building your own editing form: just check the user ID of the currently logged in user, and only let them edit documents where their user is referenced in the createdby column.
I've been scanning through the policy templates, but I don't see anything that covers this. I can of course, create a user group and a resource group, and grant appropriate access between them, but that will get cumbersome when we're potentially considering thousands of users.
What we need is something like a "virtual user group" and a "virtual resource group"... a shorthand way of granting the necessary permissions based on the user id instead of by traditional User Group/Resource Group. Each user may have created a handful of pages, but they'd need the ability to edit them all, and ONLY those pages.
If there's an obvious way of doing this, someone please feel free to smack me upside the head, but right now I'm wondering the best approach. Is there an event that we can tie a plugin to do this type of thing on the fly?
Any ideas are most welcome. Thanks as always.