From 5ff3cb7efc246649f8df37d0cf95a95e40e9a012 Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Sat, 27 Aug 2016 15:00:07 +1000 Subject: [PATCH] Fix #2 remove default archetypes and update documentation --- README.md | 5 +++-- db/access.php | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d975e4d..3e13b43 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,9 @@ Using 3. Enable web service advance feature (Admin > Advanced features), more info http://docs.moodle.org/en/Web_services 4. Enable one of the supported protocols (Admin > Plugins > Web services > Manage protocols) 5. Create a token for a specific user and for the service 'User key authentication web service' (Admin > Plugins > Web services > Manage tokens) -6. Configure your external application to make a web call to get login URL. -7. Redirect your users to this URL to be logged in to Moodle. +6. Make sure that the "web service" user has 'auth/userkey:generatekey' capability. +7. Configure your external application to make a web call to get login URL. +8. Redirect your users to this URL to be logged in to Moodle. Configuration ------------- diff --git a/db/access.php b/db/access.php index e419516..d1519c4 100644 --- a/db/access.php +++ b/db/access.php @@ -31,7 +31,6 @@ $capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'archetypes' => array( - 'manager' => CAP_ALLOW ), ), );