[katello-devel] User self-role Enhancements : merged to master
Lukas Zapletal
lzap at redhat.com
Fri Jul 1 08:56:48 UTC 2011
On 07/01/2011 10:21 AM, Lukas Zapletal wrote:
> How do you determine which role is "self-role"? The plan was to have a
> boolean column called "selfrole". Oh I see it now:
>
> Role.all(:conditions=>{"users.own_role_id"=>nil}, :include=> :owner)
>
> Elegant. I would prefer a column. This works too.
Maybe also description column would be nice now as we have now four
different default roles.
> We could also add username prefix before the 32 characters for debugging
> purposes. Just not to have only random characters if you do "hand"
> select in the db.
Just did it and pushing to master now.
--
Later,
Lukas Zapletal | E32E400A
RHN Satellite Engineering
Red Hat Czech s.r.o. Brno
More information about the katello-devel
mailing list