Skip to content

Commit

Permalink
Update rights() method in entity classes
Browse files Browse the repository at this point in the history
  • Loading branch information
dedanirungu committed Apr 12, 2024
1 parent 1ea9064 commit 3d30ace
Show file tree
Hide file tree
Showing 33 changed files with 198 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Entities/Announcement.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/Department.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
6 changes: 6 additions & 0 deletions Entities/Dependent.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ public function fields(Blueprint $table = null): void
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/Designation.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/Education.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
6 changes: 6 additions & 0 deletions Entities/Employee.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/EmployeeHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/EmployeeNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/EmployeePerformance.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
6 changes: 6 additions & 0 deletions Entities/EmployeeRemoteWorkRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/EmployeeResignRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/FinancialYear.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/Holiday.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/HolidayIndv.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ public function fields(Blueprint $table = null): void
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/Leave.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/LeaveApprovalStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/LeaveEncashmentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
6 changes: 6 additions & 0 deletions Entities/LeaveEntitlement.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
6 changes: 6 additions & 0 deletions Entities/LeavePolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
6 changes: 6 additions & 0 deletions Entities/LeavePolicySegregation.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/LeaveRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/LeaveRequestDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/LeaveUnpaid.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
6 changes: 6 additions & 0 deletions Entities/PayrollAdditionalAllowanceDeduction.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/PayrollCalendarTypeSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/PayrollFixedPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/PayrollPayCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ public function fields(Blueprint $table = null): void
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
6 changes: 6 additions & 0 deletions Entities/PayrollPayCalendarEmployee.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ public function fields(Blueprint $table = null): void
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
6 changes: 6 additions & 0 deletions Entities/PayrollPayitem.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}
}
6 changes: 6 additions & 0 deletions Entities/PayrollPayrun.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ public function structure($structure): array
*/
public function rights(): array
{
$rights = parent::rights();

$rights['staff'] = ['view' => true];
$rights['registered'] = ['view' => true];
$rights['guest'] = [];

return $rights;
}

}
Loading

0 comments on commit 3d30ace

Please sign in to comment.