Currently it is not possible, but it is easy to implement it. Open restrict-user-access.php, go to line 151 and replace:
if(!in_array($a['role'], $this->_get_user_roles())) {
with:
if(!array_intersect(explode(",", $a['role']), $this->_get_user_roles())) {
Let me know if this works out for you. It will be included in a later release too.
Thanks! It worked. However, there should be no spaces in between the values of “role” in the shortcode, just a comma (i.e. [restrict role=”editor,administrator”]). If you put a space, it will only accept the first value.
Cheers,
V.
That sounds great, and yes, it will not work with spaces. This fix was included in version 0.4.
If you run into more problems, do not hesitate to open a new support thread here. And if you like Restrict User Access, please leave a review here: https://wordpress.org/support/view/plugin-reviews/restrict-user-access