|
@@ -231,7 +231,7 @@ namespace GxPress.Repository.Implement
|
|
|
/// <returns></returns>
|
|
|
public async Task<IEnumerable<int>> GetPublicGroupAsync(int userId)
|
|
|
{
|
|
|
- string sql = $@"select Id from tede_group where (IsAdmin=1 or id in (select groupId FROM tede_group_user where userId={userId}))";
|
|
|
+ string sql = $@"select Id from tede_group where (IsAdmin=0 or id in (select groupId FROM tede_group_user where userId={userId}))";
|
|
|
var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
|
|
|
var database = new Database(databaseType, _connectionString);
|
|
|
var connection = database.GetConnection();
|