Releases for Permissions API

permissions_api 6.x-2.5

ebeyrent - July 3, 2009 - 14:52
Official release from CVS tag: DRUPAL-6--2-5
First released: July 3, 2009 - 14:52
Download: permissions_api-6.x-2.5.tar.gz
Size: 9.27 KB
md5_file hash: 593c9db4c83909a40dcfe2cf12c08e57
Last updated: July 3, 2009 - 14:56
View usage statistics for this release

Bug fix and new contrib module, provided by KarenS documented at #503118: Add easy reset form to user permission page.

permissions_api 6.x-2.4

ebeyrent - June 16, 2009 - 13:10
Official release from CVS tag: DRUPAL-6--2-4
First released: June 16, 2009 - 13:10
Download: permissions_api-6.x-2.4.tar.gz
Size: 8.42 KB
md5_file hash: 8a3260f705e258d86a9c4833f4823f9e
Last updated: June 16, 2009 - 13:15
View usage statistics for this release

As noted at #492366: Previous Patch Missing, a patch previously supplied at #405434: INSERT INTO clause missing field names was missing. This version reincorporates the missing patch.

permissions_api 6.x-2.3

ebeyrent - May 13, 2009 - 15:44
Official release from CVS tag: DRUPAL-6--2-3
First released: May 13, 2009 - 15:44
Download: permissions_api-6.x-2.3.tar.gz
Size: 8.34 KB
md5_file hash: 2929da6bae61f26e05f4281bec05904c
Last updated: May 13, 2009 - 15:46
View usage statistics for this release

This version adds a new function to the API:

permissions_role_inherit()

This function allows one role to inherit all the permissions of another role. Example usage:

<?php
permissions_role_inherit
('new role', 'original role');
?>

permissions_api 6.x-2.2

ebeyrent - May 12, 2009 - 12:00
Official release from CVS tag: DRUPAL-6--2-2
First released: May 12, 2009 - 12:00
Download: permissions_api-6.x-2.2.tar.gz
Size: 8.05 KB
md5_file hash: 38b716a118456461eabe04377e7b83d9
Last updated: May 12, 2009 - 12:05
View usage statistics for this release

Removed extraneous variable assignment

permissions_api 6.x-2.1

ebeyrent - May 12, 2009 - 11:55
Official release from CVS tag: DRUPAL-6--2-1
First released: May 12, 2009 - 11:55
Download: permissions_api-6.x-2.1.tar.gz
Size: 8.05 KB
md5_file hash: ebd290e557e5730d400299f998adbbbf
Last updated: May 12, 2009 - 12:01
View usage statistics for this release

Applied patch provided in issue #459064 to fix incorrect parameters being sent to permissions_get_permissions_for_role(). This is a critical fix to prevent loss of existing permissions.

permissions_api 6.x-2.0

ebeyrent - March 27, 2009 - 00:52
Official release from CVS tag: DRUPAL-6--2-0
First released: March 27, 2009 - 00:52
Download: permissions_api-6.x-2.0.tar.gz
Size: 8.07 KB
md5_file hash: 8eeea870daff8c026ae730f2c4b8adf6
Last updated: March 27, 2009 - 00:55
View usage statistics for this release

Fixed bug in queries for granting new permissions to roles, as reported at http://drupal.org/node/405434

permissions_api 6.x-2.x-dev

ebeyrent - March 4, 2009 - 21:48
Nightly development snapshot from CVS branch: DRUPAL-6--2
First released: March 4, 2009 - 21:48
Download: permissions_api-6.x-2.x-dev.tar.gz
Size: 8.1 KB
md5_file hash: 1848b1fe35191047db7328e9bc84dd25
Last updated: April 28, 2009 - 00:18
View usage statistics for this release

UPDATE: This version of the module has changed the first argument to all APIs defined by this module. In prior versions, the first argument was an integer representing a role id. This new version accepts a string representing the name of a role, and each API does a lookup to retrieve the proper role id.

The permissions_api module provides a method for adding and removing permissions from a given role. This module helps with the issue of staging a Drupal site across multiple environments, from development sandbox to production environment.

A specific example includes importing a CCK content type definition via hook_update in a custom module:

<?php
// Configure the path to the cck content type definition
$modulepath = drupal_get_path ('module', 'some_module');
$cck_definition_file = $modulepath.'/content_types/front_page_flash.php';
$values['type_name'] = '<create>';
$values['macro'] = file_get_contents($cck_definition_file);

include_once(
drupal_get_path('module', 'node') .'/content_types.inc');
include_once(
drupal_get_path('module', 'content') .'/content_admin.inc');

// Import the cck content type
drupal_execute("content_copy_import_form", $values);
?>

permissions_api 6.x-1.x-dev

ebeyrent - February 11, 2009 - 02:21
Nightly development snapshot from CVS branch: DRUPAL-6--1
First released: February 11, 2009 - 02:21
Download: permissions_api-6.x-1.x-dev.tar.gz
Size: 8 KB
md5_file hash: f05d7968a0e01460f79ea6231a0cb006
Last updated: February 11, 2009 - 12:15
View usage statistics for this release

Drupal 6 version

permissions_api 6.x-1.1

ebeyrent - February 11, 2009 - 02:21
Official release from CVS tag: DRUPAL-6--1-1
First released: February 11, 2009 - 02:21
Download: permissions_api-6.x-1.1.tar.gz
Size: 8 KB
md5_file hash: aaad729f3197d29e407d28abbd3a7bce
Last updated: February 11, 2009 - 02:25
View usage statistics for this release

Drupal 6 stable version

permissions_api 5.x-1.1

ebeyrent - October 18, 2008 - 03:55
Official release from CVS tag: DRUPAL-5--1-1
First released: October 18, 2008 - 03:55
Download: permissions_api-5.x-1.1.tar.gz
Size: 7.82 KB
md5_file hash: 799721e050a86e3f2de40a643dcf611b
Last updated: October 18, 2008 - 04:00
View usage statistics for this release

Two new functions have been added to this version of the module:

  • permissions_grant_all_permissions()
  • permissions_grant_all_permissions_by_module()

The permissions_grant_all_permissions() function grants all defined permissions in the Drupal application to a given role. This is very useful for creating a new role that will function as an admin role.

The permissions_grant_all_permissions_by_module() function grants all permissions defined by a given module to a given role. This is very useful for cases when you install a new module in code, and want to grant all of the permissions defined by that module to a given role.

permissions_api 5.x-1.x-dev

ebeyrent - October 15, 2008 - 00:30
Nightly development snapshot from CVS branch: HEAD
First released: October 15, 2008 - 00:30
Download: permissions_api-5.x-1.x-dev.tar.gz
Size: 9.3 KB
md5_file hash: 827367b5ea75f2df0837e545f754be28
Last updated: October 28, 2009 - 12:28
View usage statistics for this release

Changed API functions to use more correct terminology "grant" and "revoke"

permissions_api 5.x-1.0

ebeyrent - October 14, 2008 - 01:29
Official release from CVS tag: DRUPAL-5--1-0
First released: October 14, 2008 - 01:29
Download: permissions_api-5.x-1.0.tar.gz
Size: 7.44 KB
md5_file hash: f1c58d97379543d6ddef02d85bdac2ea
Last updated: October 14, 2008 - 01:30
View usage statistics for this release

The permissions_api module provides a method for adding and removing permissions from a given role. This module helps with the issue of staging a Drupal site across multiple environments, from development sandbox to production environment.

A specific example includes importing a CCK content type definition via hook_update in a custom module:

<?php
// Configure the path to the cck content type definition
$modulepath = drupal_get_path ('module', 'some_module');
$cck_definition_file = $modulepath.'/content_types/front_page_flash.php';
$values['type_name'] = '<create>';
$values['macro'] = file_get_contents($cck_definition_file);

include_once(
drupal_get_path('module', 'node') .'/content_types.inc');
include_once(
drupal_get_path('module', 'content') .'/content_admin.inc');

// Import the cck content type
drupal_execute("content_copy_import_form", $values);
?>

This is great until you decide that you want members of specific roles to be able to do something with this content type. Currently, the only way to grant the permissions is to navigate through the access control page in the admin interface, which is completely unusable if you have a lot of roles and a lot of modules.

This module addresses that problem by providing two functions:

permissions_grant_permissions()
permissions_revoke_permissions()

Syndicate content
 
 

Drupal is a registered trademark of Dries Buytaert.