The sting in user_access is not the same as in anon_comment_permission().
'#title' => t('Post this comment anonymously'),
'#default_value' => 0,
'#weight' => '10',
- '#access' => user_access('comment anonymously when logged in')
+ '#access' => user_access('comment anonymously')
Comments
Comment #1
pravin ajaaz commentedI believe the key of the permission is 'comment anonymously' and it is rightly used to check the permission
Comment #2
pravin ajaaz commented