Download & Extend

Permissions are not allowed to have special chars

Project:User Comment
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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)

Comments

#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.

#2

Version:6.x-1.0-beta1» 6.x-2.x-dev
Status:active» fixed

This has been fixed in the 6.x-2.x-dev branch and will show up once the packaging script does its thing.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.