Download & Extend

Only UID 1 can configure PHPFreeChat Settings, there is no permission for "Administer PHPFreeChat"

Project:phpfreechat
Version:6.x-1.1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review

Issue Summary

This module lacks a permission for "Administer PHPFreeChat Settings" so only the admin user UID=1 can actually administer the settings for the module.

Comments

#1

Wow! That is good info to know. I've been floundering trying to find the settings...

#2

Priority:normal» critical
Status:active» needs review

This is patch fixes this issue, by adding the correct permissions to hook_perm, where it was missing.

AttachmentSize
phpfreechat-467470-admin-access-1.patch 517 bytes

#3

Also, I should note, that if you need to fix this in your own install, open up the phpfreechat.module file in a text editor and change this:

/**
* Implementation of hook_perm().
*/
function phpfreechat_perm() {
  return array('talk on chat channels', 'create nodes with chatrooms', 'moderate chat channels');
}

to...
/**
* Implementation of hook_perm().
*/
function phpfreechat_perm() {
  return array('talk on chat channels', 'create nodes with chatrooms', 'moderate chat channels', 'admin phpfreechat');
}

That is exactly what the patch supplied in #2 does.