I seem to have something configured incorrectly, or I have encountered a bug?
I am running Drupal 6.10, php5.2, on a hosted site.
I have a particular Page which I do not want anonymous users to access. The problem is that when I try to remove access control for the particular page, Drupal automatically resets the checkboxes; I can't remove access for anonymous users.
I have configured the following (as administrator):
- In Content Types, I have enabled "per content access control" in Access Control tab for Pages.
- For the page, I go into the Access Control tab and attempt to clear various checkboxes. For example, clear "Edit Any Content" for anonymous users.
When I hit Submit, I get the message that my changes have been saved; however, the checkbox has been restored. Thus, anonymous users not only have access to the page, they can edit and delete the page as well!
Other Info:
- In User Permissions/ content_access: "grant content access" and "grant own content access" are turned on for the Admin role; my login is designated Admin (as well as being user 1).
- In User Permissions/ node: "access content" is enabled for anonymous users. Edit, Create, and Delete Pages are disabled for anonymous users.
Any suggestions for what I should do or check? I don't know why Drupal keeps resetting the Access Control checkboxes after I have changed them.
Thanks,
brew
Comments
what module u are using to
what module u are using to control the content access?
Using Access Control
Oh, yeah - I am using Content Access 6.x-1.0.
For some reason, phpinfo doesn't want to run from the Devel menu (Page not found). Running phpinfo(); from a code block gives this:
body {background-color: #ffffff; color: #000000;} body, td, th, h1, h2 {font-family: sans-serif;} pre {margin: 0px; font-family: monospace;} a:link {color: #000099; text-decoration: none; background-color: #ffffff;} a:hover {text-decoration: underline;} table {border-collapse: collapse;} .center {text-align: center;} .center table { margin-left: auto; margin-right: auto; text-align: left;} .center th { text-align: center !important; } td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;} h1 {font-size: 150%;} h2 {font-size: 125%;} .p {text-align: left;} .e {background-color: #ccccff; font-weight: bold; color: #000000;} .h {background-color: #9999cc; font-weight: bold; color: #000000;} .v {background-color: #cccccc; color: #000000;} .vr {background-color: #cccccc; text-align: right; color: #000000;} img {float: right; border: 0px;} hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}phpinfo()
PHP Version 5.2.9
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
PHP Credits
Configuration
PHP Core
bcmath
bz2
calendar
cgi-fcgi
ctype
curl
date
dom
exif
filter
ftp
gd
gettext
hash
iconv
imap
json
libxml
mbstring
mcrypt
mhash
mime_magic
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
pgsql
posix
pspell
Reflection
session
SimpleXML
soap
sockets
SPL
SQLite
standard
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend Optimizer
zip
zlib
Additional Modules
Environment
PHP Variables
PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
Found it
Found the problem after more searching. Apparently node/384916 reported a bug, and provided a patch. The patch seems not to have made it into Drupal 6.10, so I manually changed the file content_access.admin.inc as described in the post, and it now works.