[X] Update the story creation endpoint to check if the user has the "Editor" role before allowing story creation. 🔒
[X] Update the story modification endpoint to enforce the same role restriction, ensuring only editors can modify existing stories.
[X] Implement role checks in the relevant service classes to verify the user's permissions.
[X] Write unit tests to validate that only users with the "Editor" role can create or modify stories, and that appropriate error messages are returned for unauthorized attempts.
[X] Update the story creation endpoint to check if the user has the "Editor" role before allowing story creation. 🔒 [X] Update the story modification endpoint to enforce the same role restriction, ensuring only editors can modify existing stories. [X] Implement role checks in the relevant service classes to verify the user's permissions. [X] Write unit tests to validate that only users with the "Editor" role can create or modify stories, and that appropriate error messages are returned for unauthorized attempts.
Rely on : https://github.com/LeNelSoN/you-are-the-hero/issues/27