[contributions:NigelCunningham] /modules/mailfix mailfix.module
User: NigelCunningham Branch: HEAD Date: Sat, 03 Jul 2010 09:50:54 +0000 Modified files: /modules/mailfix mailfix.module Log message: Add support for allowing users to edit where their email is forwarded (if at all). This is achieved by: 1) Creating a new 'edit own mailfix settings' permission and defining a new mailfix_any_edit_access function that checks for 'administer users' or a user editing their own details (and having the permission). 2) Pushing the user access check in mailfix_user down into the called functions, using mailfix_any_edit_access at the top level and checking for 'administer users' on the fields that are admin only. 3) Loading existing settings for values the user doesn't have permission to change when saving the record (ie if they're not the admin user). The diff is big, but most of the changes are just indentation due to the new access checks. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/mailfix/mailfix.mo...
participants (1)
-
drupal-cvs@drupal.org