diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-14 07:58:50 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-14 07:58:50 +0000 |
commit | 8514a7e283b65f1085e0f3a96e1e701157532e88 (patch) | |
tree | 2aae47615521a689f66e92cca7140399e2c8269e /modules/node/node.install | |
parent | fc980fa793ef2deb93f843d81568313caac9d2d6 (diff) | |
download | brdo-8514a7e283b65f1085e0f3a96e1e701157532e88.tar.gz brdo-8514a7e283b65f1085e0f3a96e1e701157532e88.tar.bz2 |
- Patch #301902 by TheRec, beeradb, catch, sun, skilip, alpritt, JacobSingh, Senpai: usability improvement: allow more users to see the node admin page.
Diffstat (limited to 'modules/node/node.install')
-rw-r--r-- | modules/node/node.install | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/node/node.install b/modules/node/node.install index 9c4c2201f..272c1fbd3 100644 --- a/modules/node/node.install +++ b/modules/node/node.install @@ -556,6 +556,16 @@ function node_update_7007() { } /** + * Split the 'administer nodes' permission from 'access content overview'. + */ +function node_update_7008() { + $roles = user_roles(FALSE, 'administer nodes'); + foreach ($roles as $rid => $role) { + user_role_grant_permissions($rid, array('access content overview')); + } +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */ |