Download & Extend

split permissions on widgets: use and view

Project:Vote Up/Down
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (works as designed)
Issue tags:vud-2-blocker

Issue Summary

In comments it is ok, they see total vote count, but in teaser or full node it is not be displayed

Comments

#1

I am also getting this problem anyone got a solution?

#2

Status:active» postponed (maintainer needs more info)

please specify the widget you're using and probably last changes(working around visibility) solve the problem

#3

Status:postponed (maintainer needs more info)» needs review

Hi Guys

Glad to see there's a "revival" here - let's keep this going and get this incredibly useful module going.

I've attached a patch that needs review - I'm sure it's not perfect but a lot of grunt work was done. It adds the permission "view vote up/down" which compliments the existing "use vote up/down". That allows you to give certain users the ability to view the widget, but not use it.

If they do not have permission to vote and they try to click "up" or "down" it will take them to a login page. (Suggestion: it might be a good idea to have a admin option that the site admin can set, something like - If user doesn't have rights to vote, A) Forward to this node [textfield] or B) Forward to login page).

VERY IMPORTANT: This patch was done against merlin's ctool patch #615548: Integrate with CTools for AJAX and plugins. You must first patch VUD2 with his patch, and then this patch will work. I can confirm that his patch works perfectly and I've been using it on some of my sites

Hope this helps

AttachmentSizeStatusTest resultOperations
vud2_568712_new_premission_anonymous_view.patch5.92 KBIgnored: Check issue status.NoneNone

#4

Title:Anonymous users do not see total vote count in node» split permissions on widgets: use and view
Status:needs review» needs work

I've just uploaded an updated patch on #615548: Integrate with CTools for AJAX and plugins

I think you are working with an old vote up/down, please try DRUPAL-6--2 last version, since all validation have changed a little in the last commits.

#5

Status:needs work» closed (works as designed)

Permissions were splitted on #670146: display voting widget even if user doesn't have permission to vote?

the problem here is that it assumes anonymous can never vote, but they can if admin decide it.

nightowl77: please let me know if there is something more to do here.

#6

May be it will help.
For me it was important that all user roles can see widgets and results, but for anonimous users it is not allowed to vote.

I solved it this way:
I added this code

<?php
global $user;

  if (!
$user->uid) {
    exit();
}
?>

to function vud_vote() in vud.module and now i have what i need.

#7

HI,

Any update on this? I'd like anonymous users to see votes, but not be able to vote.
There is a permission "view vote up/down count on nodes" which allow the count to be seen, but not the widget icon.
For comments, there is no such permission.
The patch in #5 does not seem to have been integrated into the stable code?
#6 is not ideal either, doesn't work for me.

nobody click here