From 9f53cdadfb38a8fd7693ca69aa96beb629b76a08 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Sat, 14 Aug 2010 09:26:46 -0500 Subject: [PATCH] use setPrivileges on files instead of doing it manually --- sbin/fixWgaccess.pl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sbin/fixWgaccess.pl b/sbin/fixWgaccess.pl index 53d2bfb6d..b1de9f141 100644 --- a/sbin/fixWgaccess.pl +++ b/sbin/fixWgaccess.pl @@ -44,11 +44,7 @@ ASSET: while (1) { next ASSET; } last ASSET unless $file; - $file->getStorageLocation->setPrivileges( - $file->get('ownerUserId'), - $file->get('groupIdView'), - $file->get('groupIdEdit'), - ); + $file->setPrivileges; } finish($session);