Unable to add restrict access to courses

Unable to add restrict access to courses

by shiva kumar -
အကြောင်းပြန်မှု အရေအတွက်: 12

Hi,

i am unable to add restrict access to the courses, when we apply the restrict access rules and click "Save and Return" it is not saving.

What could be the issue?

Help needed.

ပျှမ်းမျှအဆင့်သတ်မှတ်ချက်များ: -
shiva kumar ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by Emma Richardson -
Documentation writers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

Is it just for a specific activity/resource type or any activity?  What version of Moodle?  Is it enabled at the admin level? Do the settings actually vanish when you go back to the activity settings?  Or is it just not behaving as expected (in which case, have you tested it as a student?)

It could be a lot of things - caching problem/permissions/database problem...I would start by clearing all caches and see if maybe it is saving but the page is just not refreshing correctly.

Emma Richardson ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by shiva kumar -

Hi Emma,

Thanks for the response.

its specific to activity/resource type, i can set the restrict rules at the topic level.

we have migrated from 1.9. to 2.0 and then to 2.7.1

At Admin level settings are enabled.

Yes, the settings vanishes when we to back to activity settings.

also checked as the student, it doesn't work. tested by clearing the cache as well, it doesn't work, but works for topics not for activity/resource.

shiva kumar ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by Emma Richardson -
Documentation writers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

If you change other settings in the activities, will they save?  Try turning debugging on and then see if there is an error when you click on Save. Are you sure that you are filling out every required area (e.g. do you have a description for the activity?)?

Emma Richardson ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by shiva kumar -
yes, other settings are getting changed in the activities, i have enabled debugging on, no error is throwing up.
shiva kumar ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by Emma Richardson -
Documentation writers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

When you click on Save, are you directed to a new page or do you stay on the same page? 

Emma Richardson ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by shiva kumar -

when click on "save and return" it gets redirected to another page.

shiva kumar ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by Emma Richardson -
Documentation writers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

Have you tried clearing your cache?  I wonder if this isn't a caching issue.

Emma Richardson ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by shiva kumar -

no, have cleared the cache and checked, still the same.

shiva kumar ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by Emma Richardson -
Documentation writers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

Can you post screen shots of the settings that are trying to set? Also check permissions on the activity itself and make sure they look correct. It has to be something simple..I think!

Emma Richardson ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by shiva kumar -

i am posting the screenshots as requested.

in screenshot 2, we are able to add the restrict access at topic level (marked in yellow), but unable to do it for activity (rounded in red)

Attachment admin-settings.png
Attachment course-page.png
Emma Richardson ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by shiva kumar -

i am posting the screenshots as requested part 2


activity-setting01.png (before adding the restrict access)

activity-setting02.png (ading restrict access rule)

Attachment activity-setting-page01.png
Attachment activity-setting-page02.png
Emma Richardson ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Unable to add restrict access to courses

by shiva kumar -

i am posting the screenshots as requested part 3

activity-setting03.png (after saving and back to the page)

Attachment activity-setting-page03.png