Closed vaurdan closed 1 month ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Base branches to auto review (4)
* develop * add/.* * fix/.* * update/.*Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@acicovic not adding a label here, since we don't want this to show up on the changelog.
Description
This PR fixes a typo from #2649, where the last return value is
false
, where it should betrue
.Motivation and context
Fix the Smart Linking functionality
How has this been tested?
Tested locally, with a user with two roles.
Summary by CodeRabbit
New Features
SmartLink
class to dynamically set thetitle
based on thedestination_post_id
.Refactor
current_user_can_use_pch_feature
function by restructuring user role and capability checks.