gocodebox / gocodebox/lifterlms

Unrestricted Preview Access Not Applying to Instructor Assistant

Open
#2,133 5 comments 0 reactions 0 assignees View on GitHub
Severity: Low Type: Enhancement
Dominant language
PHP
Stars
212
Forks
140
Avg merge
2d 14h
Merged PRs (30d)
19

Description

### Reproduction Steps

+ HS-191732
+ Create a user with the role instructor assistant
+ Make sure that role is added to unrestricted preview
+ Add them to a course that has drip content that a normal student should not be able to access
+ Try to access the locked content

### Expected Behavior

+ With the unrestricted preview they should be able to get around any prerequisites and drip locks

### Actual Behavior

+ The instructor assistant is unable to bypass the drip lock

### Error Messages / Logs

+ Include any relevant error messages or log files
```

```

### System and Environment Information

System Report

```
System Report

Wordpress
-------------------------------------------

Home Url: [removed]
Site Url: [removed]
Login Url: [removed]/wp-login.php
Version: 5.9.3
Debug Mode: No
Debug Log: No
Debug Display: Yes
Locale: en_US
Multisite: No
Page For Posts: Not Set
Page On Front: Student Dashboard (#1654) [[removed]/]
Permalink Structure: /%postname%/
Show On Front: page
Wp Cron: Yes

Settings
-------------------------------------------

Version: 5.10.0
Db Version: 5.10.0
Course Catalog: Course Catalog (#9) [[removed]/courses/]
Membership Catalog: Membership Catalog (#10) [[removed]/memberships/]
Student Dashboard: Student Dashboard (#12) [[removed]/my-courses/]
Checkout Page: Purchase (#11) [[removed]/purchase/]
Course Catalog Per Page: 9
Course Catalog Sorting: menu_order,ASC
Membership Catalog Per Page: 9
Membership Catalog Sorting: menu_order
Site Membership: Not Set
Courses Endpoint: my-courses
Edit Endpoint: edit-account
Lost Password Endpoint: lost-password
Vouchers Endpoint: redeem-voucher
Autogenerate Username: yes
Password Strength Meter: no
Minimum Password Strength: weak
Terms Required: no
Terms Page: Not Set
Checkout Names: required
Checkout Address: required
Checkout Phone: hidden
Checkout Email Confirmation: yes
Open Registration: no
Registration Names: required
Registration Address: hidden
Registration Phone: hidden
Registration Voucher: required
Registration Email Confirmation: yes
Account Names: required
Account Address: optional
Account Phone: hidden
Account Email Confirmation: yes
Confirmation Endpoint: confirm-payment
Force Ssl Checkout: yes
Country: US
Currency: USD
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Decimals: 2
Trim Zero Decimals: no
Recurring Payments: yes
Email From Address: [removed]
Email From Name: [removed]
Email Footer Text:
Email Header Image:
Cert Bg Width: 800
Cert Bg Height: 616
Cert Legacy Compat: no

Constants
-------------------------------------------

LLMS_REMOVE_ALL_DATA: undefined
LLMS_REST_DISABLE: undefined
LLMS_SITE_FEATURE_RECURRING_PAYMENTS: undefined
LLMS_SITE_IS_CLONE: undefined

Gateways
-------------------------------------------

Stripe: Enabled
Stripe Test Mode: Disabled
Stripe Logging: no
Stripe Order: 1
Manual: Disabled
Manual Logging: no
Manual Order: 1

Server
-------------------------------------------

Mysql Version: 5.7.32
Php Curl: Yes
Php Default Timezone: UTC
Php Fsockopen: Yes
Php Max Input Vars: 3000
Php Max Upload Size: 256 MB
Php Memory Limit: 768M
Php Post Max Size: 256M
Php Soap: Yes
Php Suhosin: No
Php Time Limt: 120
Php Version: 7.4.29
Software: Apache
Wp Memory Limit: 128M

Browser
-------------------------------------------

HTTP USER AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0

Theme
-------------------------------------------

Name: BuddyBoss Theme
Version: 1.8.8
Themeuri: https://www.buddyboss.com/
Authoruri: https://www.buddyboss.com/
Template:
Child Theme: No
Llms Support: No

Plugins
-------------------------------------------

Akismet Anti-Spam: 4.2.2
BuddyBoss Platform: 1.9.2
BuddyBoss Platform Pro: 1.2.0
Content Aware Sidebars: 3.16.1
Jetpack: 10.7
LifterLMS: 5.10.0
LifterLMS Advanced Quizzes: 2.0.1
LifterLMS Customizations: 1.0.0
LifterLMS Helper: 3.4.1
LifterLMS Stripe Payment Gateway: 5.4.0
PHP Compatibility Checker: 1.5.0
PublishPress Capabilities: 2.3.7
Scripts n Styles: 3.5.1
SVG Support: 2.3.18
Wordfence Security: 7.5.5
WP Mail Logging: 1.10.4
WP Mail SMTP: 3.3.0

Integrations
-------------------------------------------

BbPress: Yes
BuddyPress: Yes

Template Overrides
-------------------------------------------

content-certificate.php (ver: 4.21.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 4.5.0)
achievements/loop.php (ver: 3.14.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.14.0)
achievements/template.php (ver: 3.14.6): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.14.6)
certificates/loop.php (ver: 3.14.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.14.0)
certificates/preview.php (ver: 3.14.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.14.0)
course/author.php (ver: 4.11.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.25.0)
course/lesson-preview.php (ver: 5.7.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 4.4.0)
course/syllabus.php (ver: 4.4.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 4.4.0)
loop/author.php (ver: 3.0.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.0.0)
loop/content.php (ver: 3.14.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.14.0)
loop/featured-image.php (ver: 3.35.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.35.0)
myaccount/dashboard-section.php (ver: 3.30.1): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.30.1)
myaccount/header.php (ver: 3.14.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.14.0)
myaccount/my-grades-single-table.php (ver: 3.24.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.24.0)
myaccount/my-notifications.php (ver: 3.30.3): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.30.3)
myaccount/my-orders.php (ver: 3.17.6): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.17.6)
myaccount/view-order.php (ver: 5.9.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.35.0)
product/access-plan-pricing.php (ver: 3.29.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.29.0)
quiz/results-attempt-questions-list.php (ver: 5.3.0): /home/customer/www/courses.jayfeldmanwellness.com/public_html/wp-content/themes/buddyboss-theme/lifterlms/ (ver: 3.17.8)

```

This issue has be recreated:
+ [x] Locally
+ [ ] On a staging site
+ [x] On a production website
+ [x] With only LifterLMS and a default theme

### Browser, Device, and Operating System Information

+ Browser name and version
+ Operating System name and version
+ Device name and version (if applicable)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.