I've got the latest version of flexinode (4.4) installed and when I check the appropriate permission boxes and click on "Save permission" the reloaded permissions page does not show the boxes checked anymore.
I know there was a problem with the permissions in the original module release, but AFAIK, it has been patched.
anyone able to offer advice on how to solve this problem?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | flexinode.module.patch | 1.47 KB | magnestyuk |
Comments
Comment #1
magnestyuk commentedhi!
i'm in desperate need of flexinode, and since bug fixes don't seem to arrive, i looked into the code with my limited knowledge of php... first of all, i don't know if you have also noticed, but the permissions did get saved in the database, despite the tick not being in the checkbox. I looked at the database, and the permissions were stored as
create \'example\' content
and
edit \'example\' content
so i opened up flexinode.module and changed all references to these permissions from
"create '$ctype->name' content"
"edit '$ctype->name' content"
to this
"create $ctype->name content"
"edit $ctype->name content"
without the quotes. as far as i know, php understands the variable without the quotes. and it seems to work, at least the user permission table is refreshed with the new values.
i can't provide a patch, but i can tell you what to do: look for these references--i did a search with user_access(" --and remove the single quotes at the front and at the end.
test it please and tell me if it is indeed the right approach.
Comment #2
magnestyuk commentedi set this to patch, for the time being...:)
Comment #3
killes@www.drop.org commentedThere is no patch attached...
Comment #4
pruner commentedI have applied the changes proposed by suppasonic and the permissions problem is now fixed.
however, I'm having another problem.
when users click on "create content" (in the user block) the "Create content" page does not contain a link or description of the flexinode content they're authorized to create, although the flexinode content type shows up in the user block menu.
Comment #5
magnestyuk commentedI'm glad it worked for you. Here's the patch.
Comment #6
pruner commentedsuppasonic-
thanks for all your help.
I've applied the patch you just submitted and everything seems to be working as it should now.
Comment #7
jonbob commentedApplied a modification to 4.4 and HEAD.
Comment #8
jonbob commented