- 🇳🇬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; }
- Merge request !29Added condition for voting according to the permission → (Open) created by shivam_tiwari
- Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
8 months ago Not currently mergeable. - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
8 months ago Not currently mergeable. - Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 8last update
8 months ago Not currently mergeable. - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
8 months ago Not currently mergeable. - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
8 months ago Not currently mergeable. - 🇮🇳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.