permissions_api 6.x-3.1
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-3.1.tar.gz | 14.24 KB | 3b3bd8cfbe1985b428efe240dcf95ff2 |
| permissions_api-6.x-3.1.zip | 16.61 KB | cd81d5d678177fef01d3e759edbc1bc2 |
Release notes
#1530394: PHP notice due to unquoted constant name in define() - Fix for PHP notices in reference to unquoted constants
permissions_api 6.x-3.0
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-3.0.tar.gz | 14.24 KB | 692b337db7ad102af4f15c676dba7486 |
| permissions_api-6.x-3.0.zip | 16.61 KB | 427585d308b576d83d5a8aa8d5d409f0 |
Release notes
The 3.0 release of this module includes new functions for granting and revoking permissions:
- grant N permissions to a role(s)
- revoke N permissions from a role(s)
- grant ALL permissions to a role(s)
- revoke N permissions from a role(s)
- grant N permissions to ALL roles
- revoke N permissions from ALL roles
- grant ALL permissions provided by a module to a role(s)
- revoke ALL permissions provided by a module from a role(s)
- grant ALL permissions provided by a module to ALL roles
- revoke ALL permissions provided by a module from ALL roles
- grant ALL permissions a role has to another role(s)
- revoke ALL permissions a role has from another role(s)
- reset ALL permissions from ALL roles
This version also has a completely revamped Drush interface to support all of the above actions.
permissions_api 6.x-3.x-dev
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-3.x-dev.tar.gz | 14.26 KB | 650e837e4e7f9ada0b53a27014999bc4 |
| permissions_api-6.x-3.x-dev.zip | 16.62 KB | 2d0315720f470a3cfd59c1aaab7923ff |
Release notes
- #1244290 - Refactored the Drush interface to use options for controlling permission grants and revokes in a number of different cases.
- Added new functions to Permissions API to support all possible use cases
permissions_api 6.x-2.14
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.14.tar.gz | 12.36 KB | 80680988de9b56412ba4755ca25420dc |
| permissions_api-6.x-2.14.zip | 14.68 KB | 4189cbe097bf4774183b93e830c7dddd |
Release notes
#1410620 - Add sorting to permissions returned by permissions_get_permissions_for_role()
permissions_api 6.x-2.13
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.13.tar.gz | 12.35 KB | c05a81044b7fcf98a5e56d0b5a1cc138 |
| permissions_api-6.x-2.13.zip | 14.68 KB | 8c5ae8de11c442107849843ceb24e608 |
Release notes
#934152 - fixed bug where permissions_revoke_permission() on a role with only one permission updated the entry in the permission table to an empty string instead of deleting the entry. Subsequent permission grants resulted in an additional row being inserted into the permission table, which could cause permission grants to fail.
permissions_api 6.x-2.12
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.12.tar.gz | 12.29 KB | 608e2726b7ade1879773377ff5f4f027 |
| permissions_api-6.x-2.12.zip | 14.62 KB | 878674f9d092bebfed18d45df1b9ae58 |
Release notes
Bug fixes:
#1238116: INSERT INTO statement in permissions_create_role() not working
#1370596: permissions_create_role not working
permissions_api 6.x-2.11
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.11.tar.gz | 11.22 KB | ce08f4640d7adafc416ca28f67c0be23 |
| permissions_api-6.x-2.11.zip | 13.81 KB | 6466ad3cedb8c75ed341857f59923ee1 |
Release notes
#897774: Drush errors when permission api not enabled. - Fixed a bug in the Drush integration where it was possible to call Permissions API methods via Drush even though the module was not enabled, which would result in errors.
permissions_api 6.x-2.10
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.10.tar.gz | 11.18 KB | ea119fb5da76180eed0df168b3a34af0 |
| permissions_api-6.x-2.10.zip | 13.79 KB | c6e6074dddfe25e018694a9712f03947 |
Release notes
#824538 - Added patch provided by jonathan_hunt and langworthy, which provides functionality in drush to delete a role.
permissions_api 6.x-2.9
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.9.tar.gz | 10.99 KB | cebfd3daf0509f270cf3775422716dd7 |
| permissions_api-6.x-2.9.zip | 13.59 KB | dd45e41368a879da8d593436f4faacc4 |
Release notes
#802248: Add support for Drush - Permissions API now comes with support for Drush commands!
drush help | grep perm
perm-copy Copy permissions from one role to another.
perm-create Create a role.
perm-grant Grant permissions to a role.
perm-list List permissions for a role.
perm-revoke Revoke permissions from a role.
permissions_api 6.x-2.8
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.8.tar.gz | 9.92 KB | b53ceaba3324a3453c9ed39d336cf0c7 |
| permissions_api-6.x-2.8.zip | 12.1 KB | f5488e70bd5940f7aa2452fc6d600056 |
Release notes
#763786: D6 version not cross referencing incoming permissions with available permissions On grant and revoke actions, user-supplied permissions were not being validated against defined permissions.
permissions_api 6.x-2.7
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.7.tar.gz | 9.84 KB | 573a81b7f9a5866b4495df1f1dcea301 |
| permissions_api-6.x-2.7.zip | 12.02 KB | 3f904d7c0b4512ede9d25818e5d82131 |
Release notes
#628184: Remove unnecessary .project file from CVS - Removed unnecessary .project file
Added API support for creating new roles:
<?php
$new_role = permissions_create_role($role_name);
?>This will further assist with automated deployments.
permissions_api 6.x-2.6
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.6.tar.gz | 9.82 KB | 24a920307f3d34a2036d6f4f1322d15c |
| permissions_api-6.x-2.6.zip | 12.12 KB | 924fb5df593e5c018ae10087d3f3db28 |
Release notes
#718298: Better Inline Doxygen Documentation Added better inline documentation
#718304: Better Error Handling Added better error handling; errors are logged to watchdog; better checking of variables
#718308: Provide Return Values Now returning TRUE/FALSE on most functions
#615850: permissions_revoke_permissions error Fixed bug where first permission in array was being revoked
permissions_api 6.x-2.5
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.5.tar.gz | 9.27 KB | 593c9db4c83909a40dcfe2cf12c08e57 |
| permissions_api-6.x-2.5.zip | 11.62 KB | 3ebbab8a38daa23c02113fff95998067 |
Release notes
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
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.4.tar.gz | 8.42 KB | 8a3260f705e258d86a9c4833f4823f9e |
| permissions_api-6.x-2.4.zip | 9.49 KB | c123bdd54a5dae3b65a66c9961580a66 |
Release notes
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
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.3.tar.gz | 8.34 KB | 2929da6bae61f26e05f4281bec05904c |
| permissions_api-6.x-2.3.zip | 9.4 KB | 74bef4b6bff254b54f89ec93420594b9 |
Release notes
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
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.2.tar.gz | 8.05 KB | 38b716a118456461eabe04377e7b83d9 |
| permissions_api-6.x-2.2.zip | 8.98 KB | d1773a38da42f2cc868f5d9c6d62361f |
Release notes
Removed extraneous variable assignment
permissions_api 6.x-2.1
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.1.tar.gz | 8.05 KB | ebd290e557e5730d400299f998adbbbf |
| permissions_api-6.x-2.1.zip | 8.98 KB | d7a7d135dc46a10a8dd0713121763082 |
Release notes
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
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.0.tar.gz | 8.07 KB | 8eeea870daff8c026ae730f2c4b8adf6 |
| permissions_api-6.x-2.0.zip | 8.99 KB | 2c9f51a79ec75f8c2db7f6493fed0a23 |
Release notes
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
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-2.x-dev.tar.gz | 12.53 KB | 4585f7d8d286f5ae24f2c04c35075f50 |
| permissions_api-6.x-2.x-dev.zip | 14.88 KB | 2a1fc697c2c9924459d7adca700c18c6 |
Release notes
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.1
| Download | Size | md5 hash |
|---|---|---|
| permissions_api-6.x-1.1.tar.gz | 8 KB | aaad729f3197d29e407d28abbd3a7bce |
| permissions_api-6.x-1.1.zip | 8.98 KB | 9376025c7b350a36eb2cd450bb74286e |
Release notes
Drupal 6 stable version