Commit Graph

9 Commits (9eb00fed13393a3239ef8f6db18a4714d2557065)

Author SHA1 Message Date
Lunny Xiao eabbddcd98
Restrict permission check on repositories and fix some problems ()
* fix units permission problems

* fix some bugs and merge LoadUnits to repoAssignment

* refactor permission struct and add some copyright heads

* remove unused codes

* fix routes units check

* improve permission check

* add unit tests for permission

* fix typo

* fix tests

* fix some routes

* fix api permission check

* improve permission check

* fix some permission check

* fix tests

* fix tests

* improve some permission check

* fix some permission check

* refactor AccessLevel

* fix bug

* fix tests

* fix tests

* fix tests

* fix AccessLevel

* rename CanAccess

* fix tests

* fix comment

* fix bug

* add missing unit for test repos

* fix bug

* rename some functions

* fix routes check
David Schneiderbauer 0b3ea42847 hide issues from org private repos w/o team assignment ()
Lauris BH f33e6ae09e Remove unit types commits and settings ()
* Remove unit types commits and settings

* Can not limit units in administrator teams

* Limit changing units only to teams with read and write access mode

* Small code optimization
Ethan Koenig ec0ae5d50c Refactor and fix incorrect comment ()
Ethan Koenig a2412492da Unit tests and bug fix for models/org
Lunny Xiao bb5a6b7a07 fix xorm NewSession uncorrected usages ()
Ethan Koenig 8093b3372e Less boilerplate in models/ unit tests ()
Ethan Koenig 4b23e6a694 Unit tests for models/action ()
Ethan Koenig 6072b03291 Unit tests for models/access.go ()