Allowing non-institution site admins to publish (bug #1255361)
authorRobert Lyon <robertl@catalyst.net.nz>
Sun, 1 Dec 2013 19:16:18 +0000 (08:16 +1300)
committerRobert Lyon <robertl@catalyst.net.nz>
Tue, 3 Dec 2013 23:43:42 +0000 (12:43 +1300)
commit6ce2ece916e37c4afb940e4ef91aa236ac89ba93
tree317847b363949600304911c782c910b7539759a7
parent652e9f1f05b6ab3d1b4a08825ea7f82613904ba1
Allowing non-institution site admins to publish (bug #1255361)

Currently, if a site admin tries to edit an institution page and
attach a file to a block (eg image block) and they don't belong to
that institution, the process fails.

Have altered the can_publish_artefact() to allow those that can edit
institutions to be allowed to also publish.

Change-Id: I05a2160e84814add067019e4bde654a6ebd561b1
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
htdocs/auth/user.php