app/models/group_manager_team.rb
# Check if a group is permitted by recusively scaling group branch
# confering if any of the groups are permitted on the way
Check if a group is permitted by recusively scaling group branch
confering if any of the groups are permitted on the way
Check if a group is permitted by recusively scaling group branch confering if any of the groups are permitted on the way
def is_permitted?(group)
    if self.permission != nil && !self.permission.models_manage.include?('group')
      return false
    end
    loop do
      return true if self.groups.include? group
      break if group.description == 'root_node'
      group = group.parent
    end
    return false
  end
def is_permitted? ( group ) if self . permission != nil && ! self . permission . models_manage . include? ( 'group' ) return false end loop do return true if self . groups . include? group break if group . description == 'root_node' group = group . parent end return false end
Check if a group is permitted by recusively scaling group branch
confering if any of the groups are permitted on the way
Check if a group is permitted by recusively scaling group branch confering if any of the groups are permitted on the way
group
<not_specific>