Commit 07770930 authored by Dries's avatar Dries

- Patch #607238 by agentrickard, catch, salvis: permissions are assumed to be...

- Patch #607238 by agentrickard, catch, salvis: permissions are assumed to be unique among modules, but uniqueness is not enforced.
parent fe97bfef
...@@ -2870,6 +2870,8 @@ function user_role_grant_permissions($rid, array $permissions = array()) { ...@@ -2870,6 +2870,8 @@ function user_role_grant_permissions($rid, array $permissions = array()) {
->key(array( ->key(array(
'rid' => $rid, 'rid' => $rid,
'permission' => $name, 'permission' => $name,
))
->fields(array(
'module' => $modules[$name], 'module' => $modules[$name],
)) ))
->execute(); ->execute();
......
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