I want to setup a app where each user can have different roles inside a network.
So user A is an "admin" in network X, but also a "client" in network Y. Each role has his own capabilities inside the network. E.g. admin can create posts, client can only destroy his own comments etc.
What is the best table structure to achieve this setup? Should I use Devise + CanCan + ... setup?