summaryrefslogtreecommitdiff
blob: d7b65c2d755c2e340224e478fe7e70caad1253f8 (plain)
1
2
3
4
5
6
7
8
9
<?php
function owner_or_admin($id) {
	global $S;
	if (!isset($S['user']))	return false;
	if ($S['user']->id === $id) return true;
	if ($S['user']->has_flag('a')) return true;
	return false;
}
?>