CB Workflow Question

17 years 7 months ago #20040 by alanpollenz
CB Workflow Question was created by alanpollenz
I installed CB today, and punlished the workflows module and set the access to Special. However, all users that are logged in, whether registered or special, get to see the CB Workflows modules.

Any ideas on how to fix that?

Thanks.

Alan
The following user(s) said Thank You: ctim8406

Please Log in to join the conversation.

17 years 7 months ago #20051 by nant
Replied by nant on topic Re:CB Workflow Question
if this is true then its a joomla bug.

Please Log in to join the conversation.

17 years 7 months ago #20055 by alanpollenz
Replied by alanpollenz on topic Re:CB Workflow Question
It could easily be a Joomla bug. I wrote a bit of code that I drop into my index.php file around the module that contains the CB Workflow module.

[code:1]<?
global $my;
$thisid = $my->id;
$sql = mysql_query("SELECT usertype FROM jos_users WHERE id='$thisid'"«»);
$result = @mysql_query($sql);
while ($row = @mysql_fetch_array($sql)) {
extract($row);
}
if ($usertype != "Registered"«») {
mosLoadModules ( 'user5' );
}
?>[/code:1]

This simply gets the usertype of the user, and if it's not "Registered" (i.e. is special or backend) then it displays the Joomla module, and hence the CB Workflow module.

Thanks for your prompt response.

Post edited by: alanpollenz, at: 2006/09/01 23:00

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.210 seconds

Facebook Twitter LinkedIn