Package: drupal6
Version: 6.10-1

After an upgrade, Drupal sometimes needs someone to run the database
upgrade scripts. However the code only allows the admin user to do
this (unless you set $update_free_access).  This patch allows anyone
with the admin _role_ to do this which seems more sensible.

Thanks,

Adrian
-- 
Email: [email protected]  -*-  GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org
--- update.php.orig	2009-05-04 19:06:21.000000000 +0100
+++ update.php	2009-05-04 19:14:55.000000000 +0100
@@ -616,7 +616,8 @@
 ini_set('display_errors', TRUE);
 
 // Access check:
-if (!empty($update_free_access) || $user->uid == 1) {
+if (!empty($update_free_access) || $user->uid == 1
+    || array_search("admin",user_roles())) {
 
   include_once './includes/install.inc';
   include_once './includes/batch.inc';

Reply via email to