This is shamelessly duplicated from the userRoles code (both the implementation as well as the tests), but I guess that's okay as it pretty much represents the exact same functionality apart from the targeted resource.
Of course the duplication could probably be removed, but I personally like the straightforwardness of defining these roles this way given the amount of duplication.
This is shamelessly duplicated from the
userRoles
code (both the implementation as well as the tests), but I guess that's okay as it pretty much represents the exact same functionality apart from the targeted resource.Of course the duplication could probably be removed, but I personally like the straightforwardness of defining these roles this way given the amount of duplication.