[katello-devel] User self-role Enhancements : merged to master

Brad Buckingham bbuckingham at redhat.com
Fri Jul 1 13:11:27 UTC 2011


On 07/01/2011 04:21 AM, Lukas Zapletal wrote:
> On 06/30/2011 05:43 PM, Brad Buckingham wrote:
>> High-level summary of changes:
>>
>> - self-roles removed from the Roles UI
>> - User UI split in to tabs : General, Roles & Permissions
>> - self-role permissions moved to Users -> Roles & Permissions - You'll
>> no longer see the self-role mentioned.  Instead, you'll see permissions
>> that can be applied directly to the user.
>> - User's roles moved from Users -> Edit to Users -> Roles & Permissions
>>
>> - self-role naming convention - change from "<username>_role" to random
>> string consisting of 32 digits  (This change is to avoid possible name
>> collisions when users create Roles.)
>> - self-role naming is internal and not exposed to Katello users
>>
>> - seeds.rb - updated to reflect the fact that self-role names are no
>> longer predictable.  (i.e. grant permissions through the User vs to the
>> user's self-role)
>
> 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.
>
> 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.
>
[brad] +1.  I see from later post that you've added this enhancement.  
Thanks!
> When I try to create new permission its not working. Does this mean 
> when permission is already found in the db its not added? Maybe a 
> message box telling user "permission already there". Try: Roles, 
> superadmin_role, add permission, type: jammit, scope: all, verbs: all.
>
[brad] This is working ok for me in FF, but you mentioned in IRC seeing 
issue using Chrome.  I'll check there as well.
> Nice change. Thumbs up! Thanks
>




More information about the katello-devel mailing list