View | Details | Raw Unified | Return to bug 3238
Collapse All | Expand All

(-)a/C4/VirtualShelves.pm (-2 / +1 lines)
Lines 476-482 sub ShelfPossibleAction { Link Here
476
	return 1 if ( $category >= 3);							# open list
476
	return 1 if ( $category >= 3);							# open list
477
    return 1 if (($category >= 2) and
477
    return 1 if (($category >= 2) and
478
				defined($action) and $action eq 'view');	# public list, anybody can view
478
				defined($action) and $action eq 'view');	# public list, anybody can view
479
    return 1 if (($category >= 2) and defined($user) and ($borrower->{authflags}->{superlibrarian} || $user == 0));	# public list, superlibrarian can edit/delete
479
    return 1 if (($category >= 2) and defined($user) and ($borrower->{authflags}->{superlibrarian}));	# public list, superlibrarian can edit/delete
480
    return 1 if (defined($user)  and $owner  eq $user );	# user owns this list.  Check last.
480
    return 1 if (defined($user)  and $owner  eq $user );	# user owns this list.  Check last.
481
    return 0;
481
    return 0;
482
}
482
}
483
- 

Return to bug 3238