Loading...
 
Skip to main content

Module multilike can’t be used for anonymous (even if required permission is enabled)

Status
Open
Subject
Module multilike can’t be used for anonymous (even if required permission is enabled)
Version
22.x
Category
  • Consistency
  • Feature request
Feature
Modules
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

The module multilike can be used to like or unlike a page, an article, an item, etc.
This is pretty neat to have a "Was this helpful" feature:
https://medium.com/@GaryHarrower/user-feedback-was-this-page-helpful-39174efa9e93
https://www.flippercode.com/was-this-helpful/

For anonymous it says you need to enable the permission "tiki_p_post_comments" but even with this permission lib/core/Services/Relation/Controller.php failed to validate as sources are not passed to the service if you are anonymous.

Line 103
Copy to clipboard
// ensure the target, source, and relation info are passed to the service if (! $target_type || ! $target_id || ! $source_type || ! $source_id || ! $relation_prefix) { throw new Services_Exception(tr('Invalid input'), 400); }


It would be nice to be able to use Multilike for anonymous.

Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7379
Created
Tuesday 26 May, 2020 09:58:17 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Wednesday 27 May, 2020 19:36:05 UTC


Show PHP error messages