Sharing of lists via public links (#94)
This commit is contained in:
parent
88ea66798b
commit
8d57923a7d
41 changed files with 3425 additions and 590 deletions
|
|
@ -142,6 +142,10 @@ func (t *Team) ReadOne() (err error) {
|
|||
// @Failure 500 {object} models.Message "Internal error"
|
||||
// @Router /teams [get]
|
||||
func (t *Team) ReadAll(search string, a web.Auth, page int) (interface{}, error) {
|
||||
if _, is := a.(*LinkSharing); is {
|
||||
return nil, ErrGenericForbidden{}
|
||||
}
|
||||
|
||||
all := []*Team{}
|
||||
err := x.Select("teams.*").
|
||||
Table("teams").
|
||||
|
|
|
|||
Reference in a new issue