On Wed, Jun 22, 2011 at 7:42 AM, Lukas Zapletal lzap+pub@redhat.com wrote:
On 06/08/2011 04:27 PM, Devan Goodwin wrote:
- Create a role with POST /roles (json blob containing not much more
than a name) Calls UserServiceAdapter.createRole which returns a role with a unique ID.
Hi,
got a question. Looking at the ruby client there are some permissions stored with the role entity:
# TODO: drop perms here too? def create_role(name, perms=nil) perms ||= [] role = { :name => name, :permissions => perms, } post("/roles", role) end
What are these used for?
Thanks
-- Later, Lukas "lzap" Zapletal
Just an initial set of permissions, rather than explicitly adding them one at a time. You can do it either way.
Cheers,
Devan