Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37675

Re: How do I hide a block or what have you?

$
0
0
by Davo Smith.  

In the get_content() function:

Check the capability of the user that you are interested in.

Return NULL if they do not have the capability that allows them to view the block.

(Note the block will still appear to teachers if they switch editing on, but it will be hidden when editing is off).


Viewing all articles
Browse latest Browse all 37675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>