Totara Learn Open Discussions

Restrict Access to an HTML Block

 
??
Restrict Access to an HTML Block
?? 发表于 2018年03月19日 Monday 07:49
 

Dear All,

Is it possible to set up a restrict access to an HTML block?


Thank you

Alessio

me
Re: Restrict Access to an HTML Block
AngusGeorge 发表于 2018年03月19日 Monday 15:12
小组 Totara
Hi Alessio,


Theres a viewblock role capability: View block moodle/block:view, this will restrict the viewing of all blocks for users with a particular role.

Probably a better solution would be to have the block on a dashboard and restrict access to that.

cheers,

George.

me
Re: Restrict Access to an HTML Block
AngusGeorge 发表于 2018年03月19日 Monday 16:09
小组 Totara
Hi Alessio,


Clarification - the viewblock capability can be applied to roles in the block, so its possible to hide the block by role via the Permissions setting.

cheers,

George

??
Re: Restrict Access to an HTML Block
?? 发表于 2018年03月20日 Tuesday 00:49
 

Hi George,


Thank you for your reply. I would like to show the HTML block only to a specific group of users who have complete some activities within a course.

The role setting is too strict in that case, isn't it?

me
Re: Restrict Access to an HTML Block
AngusGeorge 发表于 2018年03月20日 Tuesday 13:50
小组 Totara

Hi Alessio,

You could use Restricted access in the course to enable a Label to be seen by users who have complete specified activities. 

cheers,

George.

??
Re: Restrict Access to an HTML Block
?? 发表于 2018年03月21日 Wednesday 00:40
 

Thank you George.

I will try through this way.