Permissions

Stars registers granular Craft user permissions across three areas — reviews, comments, and the blocklist. Assign them per user group under Settings → Users. Admin users have all permissions by default.

Reviews

PermissionDescription
stars:viewReviewsView the Reviews section in the CP
stars:manageReviewsCreate and edit reviews
stars:moderateReviewsApprove, reject, and mark as spam
stars:respondToReviewsAdd admin responses
stars:deleteReviewsDelete reviews

Comments

PermissionDescription
stars:viewCommentsView the Comments section in the CP
stars:manageCommentsCreate and edit comments
stars:moderateCommentsApprove, reject, and mark as spam
stars:replyToCommentsReply to comments from the CP
stars:deleteCommentsDelete comments

Blocklist

PermissionDescription
stars:manageBlocklistManage blocked submitters (by email, IP, or user ID)

The blocklist is enforced on both review and comment submission. Use the “Block Author” bulk action from any element index to quickly block a submitter.

Events

Reviews and comments are standard Craft elements, so you can hook into their lifecycle with the usual element events:

use craft\events\ModelEvent;
use justinholtweb\stars\elements\Review;
use yii\base\Event;

Event::on(Review::class, Review::EVENT_AFTER_SAVE, function(ModelEvent $event) {
    /** @var Review $review */
    $review = $event->sender;
    // Your logic here
});