Rate content permission is not ported to D8

Created on 3 May 2020, about 4 years ago
Updated 24 April 2024, 2 months ago
🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇺🇸United States TR Cascadia

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States TR Cascadia
  • 🇳🇬Nigeria chike Nigeria

    We didn't want anonymous users making ratings in my recent project so I used CSS to disable the stars. This is not so solid as someone can disable the properties from the browser and make a vote, but my client is okay with it as not many people would think we disabled the stars in the frontend.

    First I added the user roles in the template variable and then used this CSS,

    .user-role-anonymous .fivestar-widget .cancel,
    .user-role-anonymous .fivestar-widget div.star,
    .user-role-tutor .fivestar-widget .cancel,
    .user-role-tutor .fivestar-widget div.star,
    .user-role-administrator .fivestar-widget .cancel,
    .user-role-administrator .fivestar-widget div.star {
      cursor: not-allowed;
      pointer-events: none;
    }
  • 🇻🇳Vietnam tannguyenhn

    Repatch from #24 for 1.x-dev.

  • 🇩🇪Germany d4t3r

    #31 works for me. Thanks!

  • Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7
    last update 2 months ago
    Not currently mergeable.
  • Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7
    last update 2 months ago
    Not currently mergeable.
  • Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 8
    last update 2 months ago
    Not currently mergeable.
  • Pipeline finished with Failed
    2 months ago
    Total: 155s
    #155031
  • Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7
    last update 2 months ago
    Not currently mergeable.
  • Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7
    last update 2 months ago
    Not currently mergeable.
  • Pipeline finished with Failed
    2 months ago
    Total: 160s
    #155260
  • 🇮🇳India shivam_tiwari

    I tried to resolve this issue. Tested it on D8, working fine. But not able to figure out the root cause of the pipeline failure.

Production build 0.69.0 2024