Bug 13663 - QA Followup, removing tab chars
authorLiz Rea <wizzyrea@gmail.com>
Sun, 16 Aug 2015 21:47:27 +0000 (09:47 +1200)
committerMason James <mtj@kohaaloha.com>
Fri, 28 Aug 2015 02:55:25 +0000 (14:55 +1200)
tools/upload-file-progress.pl
tools/upload-file.pl

index 7952f88..0ae8292 100755 (executable)
@@ -31,9 +31,9 @@ use CGI::Cookie; # need to check cookies before
                  # having CGI parse the POST request
 
 my $flags_required = [
-               {circulate => 'circulate_remaining_permissions'},
-               {tools => 'stage_marc_import'},
-               {tools => 'upload_local_cover_images'}
+    {circulate => 'circulate_remaining_permissions'},
+    {tools => 'stage_marc_import'},
+    {tools => 'upload_local_cover_images'}
 ];
 
 my %cookies = fetch CGI::Cookie;
@@ -42,9 +42,9 @@ my ($auth_status, $sessionID) = check_cookie_auth($cookies{'CGISESSID'}->value);
 
 my $auth_failure = 1;
 foreach my $flag_required (@{ $flags_required}) {
-               if (my $flags = haspermission(C4::Context->config('user'), $flag_required)) {
-                               $auth_failure = 0 if $auth_status eq 'ok';
-               }
+    if (my $flags = haspermission(C4::Context->config('user'), $flag_required)) {
+        $auth_failure = 0 if $auth_status eq 'ok';
+    }
 }
 
 if ($auth_failure) {
index 421b3dc..c8dc0f7 100755 (executable)
@@ -39,9 +39,9 @@ use C4::UploadedFile;
 # have been created.
 
 my $flags_required = [
-               {circulate => 'circulate_remaining_permissions'},
-               {tools => 'stage_marc_import'},
-               {tools => 'upload_local_cover_images'}
+    {circulate => 'circulate_remaining_permissions'},
+    {tools => 'stage_marc_import'},
+    {tools => 'upload_local_cover_images'}
 ];
 
 my %cookies = fetch CGI::Cookie;
@@ -49,9 +49,9 @@ my %cookies = fetch CGI::Cookie;
 my $auth_failure = 1;
 my ($auth_status, $sessionID) = check_cookie_auth($cookies{'CGISESSID'}->value);
 foreach my $flag_required (@{ $flags_required}) {
-               if (my $flags = haspermission(C4::Context->config('user'), $flag_required)) {
-                               $auth_failure = 0 if $auth_status eq 'ok';
-               }
+    if (my $flags = haspermission(C4::Context->config('user'), $flag_required)) {
+        $auth_failure = 0 if $auth_status eq 'ok';
+    }
 }
 
 if ($auth_failure) {