mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 19:43:16 +00:00
admin api packaging
This commit is contained in:
1 parent
a4527d166a
commit
4534d4dbf5
124 files changed
+2250
-268
No files matched your search
@@ -0,0 +1,10 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Spacebar.AdminApi.Models;
|
||||
using Spacebar.Db.Models;
|
||||
|
||||
namespace Spacebar.AdminApi.Extensions;
|
||||
|
||||
public static class DbExtensions {
|
||||
public static string? GetString(this DbSet<Config> config, string key) => config.Find(key)?.Value;
|
||||
public static SpacebarRights.Rights GetRights(this User user) => (SpacebarRights.Rights)user.Rights;
|
||||
}
|
||||
Reference in new issue
Block a user