LLMS_User_Permissions
Filters and actions related to user permissions
Description Description
Source Source
File: includes/class.llms.user.permissions.php
Changelog Changelog
Version | Description |
---|---|
3.41.0 | Improve user management of other users when the managing user has multiple roles. |
3.37.14 | Use strict comparisons where needed. |
3.36.5 | Add llms_user_caps_edit_others_posts_post_types filter to allow 3rd parties to utilize core methods for modifying other users posts. |
3.34.0 | Added methods and logic for managing user management of other users. Add logic for view_students , edit_students , and delete_students capabilities. |
3.13.0 | Introduced. |
Methods Methods
- __construct — Constructor
- edit_others_lms_content — Handle capabilities checks for lms content to allow *editing* content based on course instructor
- editable_roles — Determines what other user roles can be managed by a user role
- get_editable_roles — Get a map of roles that can be managed by LifterLMS User Roles
- handle_cap_view_grades — Modify a users ability to `view_grades`
- handle_caps — Custom capability checks for LifterLMS things
- is_current_user_instructor — Determines if the current user is an instructor.
- user_can_manage_user — Determine if a user can manage another user.