pressbooks / pressbooks-lti-provider

A plugin which turns Pressbooks into an LTI provider.
GNU General Public License v3.0
7 stars 4 forks source link

User role settings not respected #128

Closed SteelWagstaff closed 2 years ago

SteelWagstaff commented 2 years ago

Open source user reports that #102 has reoccurred:

A new user logs into pressbooks via the Moodle LTI. This user gets the role of subscriber, no matter what the settings for the user role matching is. This happens for all new users. The role can later be changed by hand. Additional books which the user accesses after this very first one have the correct role mapping.

The expected outcome would be: User is mapped with the correct role at first login/book.

They are using Moodle 3.10.8

Diagnostic information included below:

System Information

Root Blog Info

Root Blog ID: 1 Root Blog URL: https://wp-prd.let.ethz.ch/

Browser

Platform: OS X Browser Name: Safari Browser Version: 14.1.2 User Agent String: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15

WordPress Configuration

Network URL: https://wp-prd.let.ethz.ch/ Network Type: Subdirectory Version: 5.7.4 Language: en_US WP_ENV: Not set WP_DEBUG: Enabled Memory Limit: 64M

Pressbooks Configuration

Version: 5.20.1 Root Theme: McLuhan Root Theme Version: 2.3.0

Pressbooks Dependencies

Epubcheck: Not Installed Kindlegen: Not Installed xmllint: Installed PrinceXML: Installed Saxon-HE: Not Installed

Must-Use Plugins

hm-autoloader.php: n/a

Network Active Plugins

Advanced Automatic Updates: 1.0.2 ARI Adminer: 1.2.3 ETH Zürich Polybook Customs: 0.6.1 H5P: 1.15.3 PBPrivate: 1.0.0 Pressbooks: 5.20.1 Pressbooks eskript: 0.1.3.1 Pressbooks LTI Provider: 1.4.0-dev VotingStar: 1.0.0

Root Blog Active Plugins

Advanced Automatic Updates: 1.0.2 ARI Adminer: 1.2.3 ETH Zürich Polybook Customs: 0.6.1 H5P: 1.15.3 PBPrivate: 1.0.0 Pressbooks: 5.20.1 Pressbooks eskript: 0.1.3.1 Pressbooks LTI Provider: 1.4.0-dev VotingStar: 1.0.0

Inactive Plugins

LTI: 99.1 mPDF for Pressbooks: 3.2.4 WP QuickLaTeX: 3.8.6

Server Configuration

PHP Version: 7.3.33 MySQL Version: 5.5.5 Webserver Info: Apache/2.4.37 (Red Hat Enterprise Linux) OpenSSL/1.1.1k mod_fcgid/2.3.9

PHP Configuration

Safe Mode: Disabled Memory Limit: 2048M Upload Max Size: 64M Post Max Size: 64M Upload Max Filesize: 64M Time Limit: 600 Max Input Vars: 3000 URL-aware fopen: On (1) Display Errors: N/A

PHP Extensions

OPcache: Zend XDebug: Disabled cURL: Supported cURL Version: 7.61.1 imagick: Installed xsl: Installed