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>
Thu, 5 Dec 2013 21:06:35 +0000 (10:06 +1300)
commit5c1ca13218931b25e7c6f521531651b38c75ab6e
tree7f1c08722bd457b390499806e8f6c27b4f7cc1f4
parent10fb3ad23e3ec16a20ac7c59e3a79fea1ba7fe39
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