[contributions:NigelCunningham] /modules/mailfix/mailfix_admin mailfix_admin.info mailfix_admin.install mailfix_admin.module
User: NigelCunningham Branch: HEAD Date: Sun, 25 Jul 2010 11:20:29 +0000 Added files: /modules/mailfix/mailfix_admin mailfix_admin.info mailfix_admin.install mailfix_admin.module Log message: Add a new Mailfix Admin submodule, which can be used to provide users with administration rights for particular Mailfix domains. A new field is added to the user profile form, allowing the administrator to give a comma separated list of domains over which this user will have admin rights. They will then be able to create, edit and delete the accounts of users in that domain without needing to be given the system wide 'administer users' permission. This is achieved by overriding the user view and edit access callbacks, so that mailfix permissions are checked in addition to the normal checks. New permissions allow users without 'access user profiles' and 'administer users' to be selectively granted the ability to view non Mailfix accounts, edit non Mailfix accounts, and/or view Mailfix accounts for which they have not been given administrative privilege. Where they are permitted to view accounts they do not administer, the 'view domain admin rights' allows the Mailfix domain admin rights of the user being viewed to be hidden. A user may only grant another user the domains they themselves can administer. ToDo: - Complete restrictions on creating accounts in Mailfix domains. - Stop a user from deleting domain rights they don't don't have control. (John is admin for A, B and C. Steve is an admin for B, and can edit John's account. He shouldn't be able to remove John's admin rights for A or C). - Test switching a user from one domain to another. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/mailfix/mailfix_ad... http://cvs.drupal.org/diff.php?path=contributions/modules/mailfix/mailfix_ad... http://cvs.drupal.org/diff.php?path=contributions/modules/mailfix/mailfix_ad...
participants (1)
-
drupal-cvs@drupal.org