Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unless current_user.has_permission?('write_users')
- # Get all directed units for current user
- unit_list = []
- for unit in current_user.units.by_grade(1)
- unit_list += unit.descendants_and_self
- end
Add Comment
Please, Sign In to add comment