hiding vote from a specific role.

nikitas - July 3, 2009 - 12:33
Project:Fivestar
Version:6.x-1.17
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

HI. . . is it possible to write something ( quick fix ) . . . like this and how is this done ?

if(user_role=='judge'){
//show him the fivestar module
}

. . .
i dont want to show up at the node.tpl.php page for the simple authenticated users.
thanx!

#1

quicksketch - July 4, 2009 - 06:09
Category:task» support request

Yes just set the access control for "rate content" at admin/user/permissions so that authenticated users do not have access and judges do.

#2

nikitas - July 4, 2009 - 12:45

this is ok if you only want the judges to vote.But what if i want to the judges to vote on contests and the authenticated users can vote anyway.for example only the submissions from Create Content->Submit to Contest will be available for the judges and the normal entries can be rated from anyone-authenticated.
Is this to much of a trouble\?
p.s:thanx for your quick response appreciated.

 
 

Drupal is a registered trademark of Dries Buytaert.