src/Access/DiscussionPolicy.php
public function tag(User $actor, Discussion $discussion)
    {
        if ($discussion->user_id == $actor->id && $actor->can('reply', $discussion)) {
            $allowEditTags = $this->settings->get('allow_tag_change');

            if ($allowEditTags === '-1'
                || ($allowEditTags === 'reply' && $discussion->participant_count <= 1)
                || (is_numeric($allowEditTags) && $discussion->created_at->diffInMinutes(new Carbon) < $allowEditTags)
            ) {
                return true;
            }
        }
    }
public function tag(User $actor, Discussion $discussion)
    {
        if ($discussion->user_id == $actor->id && $actor->can('reply', $discussion)) {
            $allowEditTags = $this->settings->get('allow_tag_change');

            if ($allowEditTags === '-1'
                || ($allowEditTags === 'reply' && $discussion->participant_count <= 1)
                || (is_numeric($allowEditTags) && $discussion->created_at->diffInMinutes(new Carbon) < $allowEditTags)
            ) {
                return true;
            }
        }
    }
public function tag ( User $ actor , Discussion $ discussion ) { if ( $ discussion -> user_id == $ actor -> id && $ actor -> can ( 'reply' , $ discussion ) ) { $ allowEditTags = $ this -> settings -> get ( 'allow_tag_change' ) ; if ( $ allowEditTags === '-1' || ( $ allowEditTags === 'reply' && $ discussion -> participant_count <= 1 ) || ( is_numeric ( $ allowEditTags ) && $ discussion -> created_at -> diffInMinutes ( new Carbon ) < $ allowEditTags ) ) { return true ; } } }
This method checks, if the user is still allowed to edit the tags
based on the configuration item.

@param User $actor
@param Discussion $discussion
@return bool
This method checks if the user is still allowed to edit the tags based on the configuration item .