Skip to content

Commit

Permalink
Merge pull request #515 from sparkybug/fix/moved-faq-to-admin
Browse files Browse the repository at this point in the history
fix: moved faq endpoint to admin from super-admin
  • Loading branch information
timiajayi authored Aug 16, 2024
2 parents 5427a43 + 970cb9e commit 90f7e2b
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 90f7e2b

Please sign in to comment.