Check whether a user got access to a forum

Check whether a user got access to a forum

by Anon Anon -
Number of replies: 2
Hello 


We have a forum that's been set to only allow access for users under specific group via the "Restrict Access" feature.

I'm looking for a function or method to verify whether a user got access to the forum(whether he's passing the required access restrictions).


Is there such thing?


Thanks

Y

Average of ratings: -
In reply to Anon Anon

Re: Check whether a user got access to a forum

by Anon Anon -

BUMP.

Anyone?

In reply to Anon Anon

Re: Check whether a user got access to a forum

by Darko Miletić -

I suggest you take a look at unit test for group accesibility condition plugin which is located at

[moodle]/availability/condition/group/tests/condition_test.php method test_usage