Skip to content

Commit a2bae74

Browse files
committed
Add IsPublic to Agent.
1 parent 147aa94 commit a2bae74

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.GetAgents.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public async Task<List<Agent>> GetAgents()
1111
var query = from a in db.Agent
1212
join ua in db.UserAgent on a.Id equals ua.AgentId
1313
join u in db.User on ua.UserId equals u.Id
14-
where ua.UserId == _user.Id || u.ExternalId == _user.Id
14+
where ua.UserId == _user.Id || u.ExternalId == _user.Id || a.IsPublic
1515
select a.ToAgent();
1616
return query.ToList();
1717
}

src/Infrastructure/BotSharp.Core/BotSharp.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<LangVersion>10.0</LangVersion>
66
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
7-
<VersionPrefix>0.10.3</VersionPrefix>
7+
<VersionPrefix>0.10.4</VersionPrefix>
88
</PropertyGroup>
99

1010
<PropertyGroup Label="Globals">

src/Infrastructure/BotSharp.Core/Repository/DbTables/AgentRecord.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ public class AgentRecord : DbRecord, IBotSharpTable
1414
[MaxLength(512)]
1515
public string? Description { get; set; }
1616

17+
public bool IsPublic { get; set; }
18+
1719
[Required]
1820
public DateTime CreatedDateTime { get; set; }
1921

0 commit comments

Comments
 (0)