Access Control List (ACL)
ACL menentukan aksi spesifik untuk resource spesifik
const acl = {
admin: {
post: ["create", "read", "update", "delete"],
user: ["create", "read", "update", "delete"],
comment: ["create", "read", "update", "delete"],
},
editor: {
post: ["create", "read", "update"],
comment: ["create", "read", "update", "delete"],
},
user: {
post: ["read"],
comment: ["create", "read"],
},
};