Closed (fixed)
Project:
Comment CCK
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
2 Feb 2008 at 13:10 UTC
Updated:
31 Jul 2008 at 04:46 UTC
Jump to comment: Most recent file
Hello:
Can you add another permission in the implementation of hook_perm()?
Something like this
/**
* Implementation of hook_perm().
*/
function comment_cck_perm() {
return array('allow fields to be changed', 'use comment cck',);
}
/**
* Implementation of hook_comment()
*/
function comment_cck_comment($comment, $op) {
if(user_access('use comment cck')){
//your comment_cck_comment function code
}
}
Then we can set wich roles can use comment cck
Thanks
Mariano
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | comment_cck_permission_renaming_01.patch | 1.02 KB | cwgordon7 |
Comments
Comment #1
brst t commented+1 for this
Comment #2
sinasalek commentedSame here
Comment #3
killes@www.drop.org commentedI am not sure I understand this request: The permission that is implemented does a check in hook_:form_alter already.
Comment #4
cwgordon7 commentedI agree that this makes no sense. However, I think that this request comes from a misunderstanding of the very unclear "allow fields to be changed" permission name. Perhaps it should be renamed to something along the lines of "alter cck fields through comments".
Comment #5
cwgordon7 commentedComment #6
gerhard killesreiter commentedapplied
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.