Line 156: |
Line 156: |
| repo.name = "sat-solver" | | repo.name = "sat-solver" |
| repo.save! | | repo.save! |
| + | |
| + | # check users permissions for particular repository |
| + | repo = Repository::find_by_path("pukllanapac/mainline") |
| + | repo.committerships.each {|i| puts "#{User.find(i.committer_id).login} review=#{i.permissions & Committership::CAN_REVIEW > 0}"} |
| + | repo.committerships.each {|i| puts "#{User.find(i.committer_id).login} commit=#{i.permissions & Committership::CAN_COMMIT > 0}"} |
| + | repo.committerships.each {|i| puts "#{User.find(i.committer_id).login} admin=#{i.permissions & Committership::CAN_ADMIN > 0}"} |
| | | |
| === TODO === | | === TODO === |