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.

CommentFileSizeAuthor
recipe.module.patch1004 bytesmarcingy

Comments

scottprive’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Assigned: Unassigned » scottprive

A good idea, thanks... will test and commit.

scottprive’s picture

Status: Needs review » Fixed

updated 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)) {

scottprive’s picture

Version: 6.x-1.x-dev » master
Assigned: scottprive » Unassigned

unassigning, anyone can verify this...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.