Permalink
Browse files

Add security for viewing own scans

  • Loading branch information...
1 parent 24e33db commit 0158098ec366d33e3140ec75af3019b0375ffeda @lattera lattera committed Jan 17, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 helpers.inc
View
@@ -318,6 +318,9 @@ function list_scans($user, $allusers=false) {
}
$basedir->close();
} else {
+ if (user_access('view own scans') == false)
+ return $scans;
+
$basedir = dir($base . '/' . $user->uid);
while (($server = $basedir->read()) !== FALSE) {
if ($server[0] == '.')

0 comments on commit 0158098

Please sign in to comment.