MDL-56509 tool_usertours: Remove guest from list and add admin
commit6511cf7795612d2f7ffc73429dfa6cd4db8a5898
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 21 Oct 2016 02:34:07 +0000 (21 10:34 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 24 Oct 2016 07:11:54 +0000 (24 15:11 +0800)
treec39fe320783e6782670961eea82ef44a121ae934
parent919b9dfabd69f71c088f565746c547e6e169a0b7
MDL-56509 tool_usertours: Remove guest from list and add admin

It is not possible to display a tour to users with the guest role so remove
all users with this archetype from the list.

This also changes behaviour such that it is possible to target a tour just
to administrators and administrators are not shown the tours for roles
which they do not have in the current context.
admin/tool/usertours/classes/local/filter/role.php
admin/tool/usertours/tests/role_filter_test.php