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 |
Jump to:
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
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
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.