Ignore:
Timestamp:
10/25/21 10:15:27 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
f5097b2
Parents:
9141ace
Message:

bug fix

Location:
app/Http/Controllers/Dashboard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Controllers/Dashboard/DepartmentsController.php

    r9141ace r9d1628a  
    174174        }
    175175        catch(\Exception $e){
    176             Alert::flash("All departments are empty", "warning");
    177             return redirect()->back();
     176            abort(403, "No files found");
    178177        }
    179178    }
  • app/Http/Controllers/Dashboard/FoldersController.php

    r9141ace r9d1628a  
    303303        }
    304304        catch (\Exception $e) {
    305             Alert::flash("This folder has no files", "warning");
    306             return redirect()->back();
     305            abort(403, "No files found");
    307306        }
    308307    }
Note: See TracChangeset for help on using the changeset viewer.