mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-26 23:49:02 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using RadicadeServer.DB;
|
||||
|
||||
namespace RadicadeServer.RecNet.Avatar;
|
||||
|
||||
public static class LockerAccess
|
||||
{
|
||||
public static bool HasFullInventory(RecDBContext db, long? accountId) =>
|
||||
accountId.HasValue && db.Profiles.FirstOrDefault(p => p.accountId == accountId.Value)
|
||||
?.HasRole("unlockedlocker") == true;
|
||||
}
|
||||
Reference in New Issue
Block a user