From ca11696598dfeb350df9fe90861b8fffa45c002e Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Tue, 26 Dec 2006 00:29:49 +0000 Subject: [PATCH] #105210 by myself. Check the correct hook for grant rebuild UI. --- modules/node/node.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/node/node.module b/modules/node/node.module index bbff1ba3555..2fca4bfe432 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -968,7 +968,7 @@ function theme_node_search_admin($form) { */ function node_configure() { // Only show rebuild button if there is 0 or more than 2 rows in node_access table, or if there are modules that implement node_grant. - if (db_result(db_query('SELECT COUNT(*) FROM {node_access}')) != 1 || count(module_implements('node_grant'))) { + if (db_result(db_query('SELECT COUNT(*) FROM {node_access}')) != 1 || count(module_implements('node_grants')) > 0) { $status = '

'. t('If the site is experiencing problems with permissions to content, you may have to rebuild the permissions cache. Possible causes for permission problems are disabling modules or configuration changes to permissions. Rebuilding will remove all privileges to posts, and replace them with permissions based on the current modules and settings.') .'

'; $status .= '

'. t('Rebuilding may take some time if there is a lot of content or complex permission settings. After rebuilding has completed posts will automatically use the new permissions.'). '

';