Commit 9c62f5b7 authored by fago's avatar fago

removed the module from HEAD

parent 9e3768af
......@@ -4,45 +4,4 @@ Content Access Module
-----------------------
by Wolfgang Ziegler, nuppla@zites.net
Yet another node access module.
So this module allows you to manage permissions for content types by role and author. It allows
you to specifiy custom view, edit and delete permissions for each content type. Optionally you
can also enable per node access settings, so you can customize the access for each node.
In particular
* it comes with sensible defaults, so you need not configure anything and everything stays working
* it is as flexible as you want. It can work with per content type settings, per node settings
as well as with flexible Access Control Lists.
* it trys to reuse existing functionality instead of reimplementing it. So one can install the ACL
module and set per user access control settings per node.
* it optimizes the written node grants, so that only really necessary grants are written.
So the module is simple to use, but can be configured to provide really fine-grained permissions!
Installation
------------
* Copy the content access module's directory to your modules directory and activate the module.
* Optionally download and install the ACL module too.
* Edit a content type at admin/content/types. There will be a new tab "Access Control".
ACL Module
-----------
You can find the ACL module at http://drupal.org/project/acl. Note that you'll need to install at
least version 1.4 of the module. To make use of Access Control Lists you'll need to enable per node
access control settings for a content type. At the access control tab of such a node you'll be
able to grant single users view, edit or delete permission for this node.
Enabling this module on big sites
----------------------------------
Drupal 5.1 uses a lot of memory, as soon as you enable this, or any other node access module on a
site with a lot of existing nodes, which means thousands of nodes. This is problem of drupal itself,
and is fixed in the latest development snapshot of 5.x (http://drupal.org/node/108752).
So if you are experiencing memory issues or you are planning to enable this on such a big site update
to the latest development snapshot of drupal 5.x before.
You can find it here: http://drupal.org/project/drupal
If drupal 5.2 is already released at the time you read that, it will also contain the fix.
For the code have a look at the branches DRUPAL-5, ..
\ No newline at end of file
.content_access-div {
width: 25%;
margin: 0;
padding: 0;
float: left;
overflow: hide;
}
; $Id$
name = Content Access
description = Provides flexible content access control
package = Access control
\ No newline at end of file
<?php
// $Id$
/*
* Implementation of hook_install
*/
function content_access_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {content_access} (
nid int(10) unsigned NOT NULL default '0',
settings mediumtext NOT NULL,
PRIMARY KEY (nid)
) /*!40100 DEFAULT CHARACTER SET utf8 */;");
break;
case 'pgsql':
db_query("CREATE TABLE {content_access} (
nid int_unsigned NOT NULL default '0',
settings text NOT NULL,
PRIMARY KEY (nid)
)");
break;
}
}
/*
* Implementation of hook_uninstall
*/
function content_access_uninstall() {
variable_del('content_access_settings');
db_query('DROP TABLE {content_access}');
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment