#2740 Error adding permissions to a subproject

v1.0.0
closed
sf-1 (616)
Admin
nobody
2015-08-20
2011-09-06
No

In a subproject, if you try to assign a group (from the parent) a permission, you get this error:

Module allura.ext.admin.admin_main:517 in update
<<              # make sure the admin group has the admin permission
                   if perm == 'admin':
                       admin_group_id = str(M.ProjectRole.query.get(project_id=c.project._id, name='Admin')._id)
                       if admin_group_id not in group_ids:
                           flash('You cannot remove the admin group from the admin permission.','warning')
>>  admin_group_id = str(M.ProjectRole.query.get(project_id=c.project._id, name='Admin')._id)
AttributeError: 'NoneType' object has no attribute '_id'

Discussion

  • Jenny Steele - 2011-09-12
    • status: open --> in-progress
    • assigned_to: Jenny Steele
     
  • Jenny Steele - 2011-09-13
    • status: in-progress --> code-review
    • assigned_to: Jenny Steele --> Tim Van Steenburgh
     
  • Jenny Steele - 2011-09-13

    Fix is on allura js/2740. To test, create a subproject, then try to assign permissions.

     
  • Looks good, merged to dev.

     
    • status: code-review --> closed
    • assigned_to: Tim Van Steenburgh --> Jenny Steele
     

Log in to post a comment.