moodle-local_staticpage icon indicating copy to clipboard operation
moodle-local_staticpage copied to clipboard

Permissions of any sort allowed?

Open onword opened this issue 4 years ago • 5 comments

I saw this closed topic but I'm not sure if it's along the same lines as my question or not.

Is it possible to apply permissions to static pages to prevent or allow them from being viewed by specified roles? I.e. set a page that can't be viewed by a guest, or create one that can only be viewed by admins, etc.

Thanks in advance, fantastically useful plugin.

onword avatar May 30 '21 00:05 onword

Hi @onword,

just iterating, if I got your idea right. Would this be feasible (dont know if or when I would have time for this):

For each defined static page there should be

  • a "allowed for role" setting
  • a "blocked for role" setting

Each setting would be a multiselect field providing all system roles and admins can select one or multiple roles as needed.

If no role is selected, the static page would be displayed without any restrictions.

This would be an additional option, that has to be activated first in the global settings.

Cheers Christian

christianwolters avatar Jun 24 '21 12:06 christianwolters

Hello Christian, I’m sorry for the extremely delayed reply. I ended up moving over to a wordpress based LMS for ease of layout customization and, yes, ability to add static pages among other things 😃.

That said, your iterations are right on the money for what I was thinking. In my case, I was looking to add a particular scheduling system to my Moodle site using an iframe that was easily accessible via its own static page. However, I did not want guests or authenticated users to be able to view it. That also lead to me thinking it would be a good idea to have control over who gets to see what pages, which could extend to groups or cohorts and so on.

onword avatar Jul 09 '21 16:07 onword

Hello Christian!

Any news?

p0llus avatar Jul 19 '23 19:07 p0llus

Hello! Any chances for this feature in near future? Thanks!

SargeMadovsky avatar Nov 18 '24 14:11 SargeMadovsky

Hello! Any chances for this feature in near future? Thanks!

yeah!

p0llus avatar Nov 18 '24 14:11 p0llus