adjust code to new repository
This commit is contained in:
committed by
T. R. Bernstein
parent
0cf34c475b
commit
795cd8335f
@@ -6,8 +6,8 @@ import (
|
||||
|
||||
validation "github.com/go-ozzo/ozzo-validation/v4"
|
||||
"github.com/pocketbase/dbx"
|
||||
"github.com/pocketbase/pocketbase/tools/list"
|
||||
"github.com/pocketbase/pocketbase/tools/types"
|
||||
"github.com/tabshift-gh/pocketbase/tools/list"
|
||||
"github.com/tabshift-gh/pocketbase/tools/types"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -287,7 +287,7 @@ func (f *RelationField) checkCollectionId(app App, collection *Collection) valid
|
||||
}
|
||||
|
||||
// allow only views to have relations to other views
|
||||
// (see https://github.com/pocketbase/pocketbase/issues/3000)
|
||||
// (see https://github.com/tabshift-gh/pocketbase/issues/3000)
|
||||
if !collection.IsView() && relCollection.IsView() {
|
||||
return validation.NewError(
|
||||
"validation_relation_field_non_view_base_collection",
|
||||
|
||||
Reference in New Issue
Block a user