mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-07 02:20:28 +08:00
feat: add posixAccount and posixGroup filter logic for more versatile usage in LDAP (#4014)
This commit is contained in:
@@ -70,6 +70,16 @@ func GetGroups(owner string) ([]*Group, error) {
|
||||
return groups, nil
|
||||
}
|
||||
|
||||
func GetGlobalGroups() ([]*Group, error) {
|
||||
groups := []*Group{}
|
||||
err := ormer.Engine.Desc("created_time").Find(&groups)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return groups, nil
|
||||
}
|
||||
|
||||
func GetPaginationGroups(owner string, offset, limit int, field, value, sortField, sortOrder string) ([]*Group, error) {
|
||||
groups := []*Group{}
|
||||
session := GetSession(owner, offset, limit, field, value, sortField, sortOrder)
|
||||
|
Reference in New Issue
Block a user