class Feed_PermissionsStatic permission checks shared by the REST controller and the bundled feed contexts.
Third-party contexts write their own checks in their can_view / can_post callbacks (see Feed_Context). These helpers are public so a context that builds on teams or groups can reuse the exact same rules.
class final
- Full name
Kernowdev\ClanbiteSocialKit\Social\Feed_Permissions
Constants
| Name | Value | Description |
|---|---|---|
TEAM_POST_TYPE | 'clanbite_team' | Team post type registered by core Clanbite. |
Methods
can_post_to_group_feed()Whether a user may publish to a group feed (any non-banned member).can_post_to_team_feed()Whether a user may publish to a team feed.can_view_group_feed()Whether a viewer can see a group feed.can_view_team_feed()Whether a viewer can read team feed posts.viewer_group_ids()Groups the user belongs to and may still read (the sources of their home feed's group posts).viewer_team_ids()Teams the user belongs to and may still read (the sources of their home feed's team posts).
Defined in inc/Social/Feed_Permissions.php