Currently a role can not be assigned a permission to allow them to edit al recipes on the site.
This patch adds a new permission and access check.
| Comment | File | Size | Author |
|---|---|---|---|
| recipe.module.patch | 1004 bytes | marcingy |
Currently a role can not be assigned a permission to allow them to edit al recipes on the site.
This patch adds a new permission and access check.
| Comment | File | Size | Author |
|---|---|---|---|
| recipe.module.patch | 1004 bytes | marcingy |
Comments
Comment #1
scottprive commentedA good idea, thanks... will test and commit.
Comment #2
scottprive commentedupdated for HEAD, checked in.
Index: recipe.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/recipe/recipe.module,v
retrieving revision 1.88
diff -r1.88 recipe.module
19c19
< return array('create recipes', 'edit own recipes');
---
> return array(t('create recipes'), t('edit own recipes'), t('edit any recipes'));
529c529,532
< if (user_access('edit own recipes') && ($user->uid == $node->uid)) {
---
> if (user_access('edit any recipes')) {
> return TRUE;
> }
> else if (user_access('edit own recipes') && ($user->uid == $node->uid)) {
Comment #3
scottprive commentedunassigning, anyone can verify this...