- 🇳🇬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
12 months ago Not currently mergeable. - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
12 months ago Not currently mergeable. - Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 8last update
12 months ago Not currently mergeable. - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
12 months ago Not currently mergeable. - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
12 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.
- 🇮🇳India shivam_tiwari
I resolved conflict from the MR. Need to work on MR's test failure.
- 🇺🇸United States tr Cascadia
This has to be rebased to 3.0.x - 8.x-1.x will not be made D11 compatible.
Also, it needs test cases, as stated above.
- 🇮🇳India shivam_tiwari
I updated MR and created it for 3.0.x. Need to work here for resolving test failure issue.
- 🇺🇸United States tr Cascadia
The test failure is because the MR is still on the 8.x-1.x branch and the MR can't be installed on Drupal 11 in the testing system.
See https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-dr... →