Commit 9c26c8f8 authored by Francois Marier's avatar Francois Marier
Browse files

view access: fix broken loggedin view permissions

This array structure was too deep and caused invalid records to
get added to the DB on MySQL (since it doesn't have CHECK
constraints) and errors on Postgres.

Bug introduced in e283a68a

 while
implementing the features described in bug #807278.

Change-Id: I65aa9b6de736294320e6d2bce2ea549a67ba2577
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent a7d04cc4
......@@ -542,11 +542,9 @@ class User {
$access = array();
if (get_config('loggedinprofileviewaccess')) {
$access[] = array(
array(
'type' => 'loggedin',
'startdate' => null,
'stopdate' => null,
),
'type' => 'loggedin',
'startdate' => null,
'stopdate' => null,
);
}
if ($institutions = $this->get('institutions')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment