Skip to content

Commit

Permalink
Merge branch 'hngprojects:dev' into login
Browse files Browse the repository at this point in the history
  • Loading branch information
timiajayi authored Aug 16, 2024
2 parents 137ee0b + 90f7e2b commit 5448bf9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Http/Controllers/Api/V1/RoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ public function show($org_id, $role_id)

return response()->json([
'status_code' => Response::HTTP_OK,
'message' => "Roles fetched successfully",
'data' => [
'id' => $role->id,
'name' => $role->name,
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Requests/StoreRoleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function rules(): array
'exists:organisations,org_id',
Rule::unique('roles', 'org_id')->where('name', $this->input('role_name'))
],
'permissions_id' => 'required',
'permissions_id' => 'nullable',
];
}

Expand Down
2 changes: 2 additions & 0 deletions tests/Feature/ShowRoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,5 @@ public function testFetchNonExistentRole()
]);
}
}

?>

0 comments on commit 5448bf9

Please sign in to comment.