79183791

Date: 2024-11-13 07:32:17
Score: 2.5
Natty:
Report link

Since you need to GET the resource from the server anyway, why not use that same request to check if the currently logged-in user can perform C.R.U.D actions on that resource. You then return allowed actions alongside the resource. Depended on what allowed actions you return, you can render the components.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rick