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:07:35 +0000 (10:07 +1300)
commit07627f8765f9824a20d2900a1557a5ff1b536dbe
tree636b314bd503cb61dd981db553c4ce8aeed4d1fe
parent06740c85de275a5eec7158ca311a345ce2391b15
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