Closed (fixed)
Project:
Support Ticketing System
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2011 at 13:47 UTC
Updated:
13 May 2011 at 01:21 UTC
Accidentally the per-client code at the end of hook_permission function is not called because of an early return statement.
Please replace return with $perm = as stated below.
/**
* Implementation of hook_perm().
*/
function support_permission() {
$perm = array(
Without this code all non adminstrator ticket assignments are broken.
Comments
Comment #1
bdragon commentedFixed, thanks.
f78f06cb09596fcb27a388ffe019b28628b4ede6
Comment #2
bdragon commentedFollowup typo regarding the permission name being wrong fixed in 934f79e22395ef2b10c4d73f38cd8171d48aaf15.
Comment #3
miro_dietikerThere seemed to be more wrong, because the module finally still didn't work for non admin permissions after that fix.
Also note that i've found several Client access string replacements with different replacement patterns. Some with !client, and others. They should be all identical to work right in case of special chars.
Did you ever check if the project works without administrative permissions?
Comment #4
bdragon commentedThere are issues in the code (not 7.x specific) regarding attempting to use client specific permissions with drupal's built in (anonymous / authenticated) roles. Specifically, none of the autocomplete stuff works properly, due to those roles not actually being stored in {users_roles} (they're implicit). It is possible there are further issues regarding this.
I have been testing against an account without administrative permissions today, but not extensively.