Commit 852e8c82 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor permission check fix.

parent 4f7a4004
......@@ -391,7 +391,7 @@ function Do_BindParameters()
$this_idx = $this_user->uid_idx();
$this_uid = $this_user->uid();
if (!$profile->CanInstantiate($this_user)) {
if (! ($profile->CanInstantiate($this_user) || ISADMIN())) {
SPITAJAX_ERROR(1, "Not enough permission to instantiate profile");
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