Permissions are not allowed to have special chars
mcload - September 2, 2009 - 14:11
| Project: | User Comment |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Permissions are not allowed to have special chars like single quotes and other non english characters. In my installation update of link checker module failed because of single quotes in the permission name "skip author's approval queue when posting comments" in User Comment module. Please check #532178: Database update #6209 failed and #539666: Permission names (for homebox names containing special chars)

#1
Bugs are all here:
<?php
function usercomment_perm() {
$perms = array(
"skip author's approval queue when posting comments",
'administer comments on own content',
);
foreach (node_get_types() as $node) {
$perms[] = 'delete comments on own '. check_plain($node->type) .' content';
$perms[] = 'approve comments on own '. check_plain($node->type) .' content';
}
return $perms;
}
?>
See http://drupal.org/node/539666#comment-1933412 how to fix, please.