Commit ac4502be authored by Robert Ricci's avatar Robert Ricci
Browse files

Changed the access type passed to TBImageIDAccessCheck to

TB_IMAGEID_READINFO - I was mistaken about the level of access implied
parent 8d5b66eb
......@@ -144,7 +144,7 @@ if ($UID && !TBAdmin($UID)) {
# See if allowed to load this image!
if (defined($imageid) && $mereuser &&
! TBImageIDAccessCheck($UID, $imageid, TB_IMAGEID_ACCESS)) {
! TBImageIDAccessCheck($UID, $imageid, TB_IMAGEID_READINFO)) {
die("*** You do not have permission to load imageid $imageid!\n");
Supports Markdown
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