Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/79086dcf4576e5c1c8afd5fec974c0b749172869?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
32 additions and
3 deletions
@ -4,9 +4,9 @@ namespace PlexRequests.Helpers
{
{
public class UserClaims
public class UserClaims
{
{
public const string Admin = "Admin" ;
public const string Admin = "Admin" ; // Can do everything including creating new users and editing settings
public const string PowerUser = "PowerUser" ;
public const string PowerUser = "PowerUser" ; // Can only manage the requests, approve etc.
public const string User = "User" ;
public const string User = "User" ; // Can only request
}
}
}
}
@ -0,0 +1,16 @@
using System ;
using Dapper.Contrib.Extensions ;
namespace PlexRequests.Store
{
[Table("Audit")]
public class Audit : Entity
{
public string Username { get ; set ; }
public DateTime Date { get ; set ; }
public string ChangeType { get ; set ; }
public string OldValue { get ; set ; }
public string NewValue { get ; set ; }
}
}
@ -81,6 +81,7 @@
<DependentUpon > Sql.resx</DependentUpon>
<DependentUpon > Sql.resx</DependentUpon>
</Compile>
</Compile>
<Compile Include= "TableCreation.cs" />
<Compile Include= "TableCreation.cs" />
<Compile Include= "Models\Audit.cs" />
</ItemGroup>
</ItemGroup>
<ItemGroup >
<ItemGroup >
<None Include= "sqlite3.dll" >
<None Include= "sqlite3.dll" >
@ -42,6 +42,18 @@ CREATE TABLE IF NOT EXISTS Logs
) ;
) ;
CREATE UNIQUE INDEX IF NOT EXISTS Logs_Id ON Logs ( Id ) ;
CREATE UNIQUE INDEX IF NOT EXISTS Logs_Id ON Logs ( Id ) ;
CREATE TABLE IF NOT EXISTS Audit
(
Id INTEGER PRIMARY KEY AUTOINCREMENT ,
Date varchar ( 100 ) NOT NULL ,
Username varchar ( 100 ) NOT NULL ,
ChangeType varchar ( 100 ) NOT NULL ,
OldValue varchar ( 100 ) ,
NewValue varchar ( 100 ) ,
) ;
CREATE UNIQUE INDEX IF NOT EXISTS Audit_Id ON Audit ( Id ) ;
CREATE TABLE IF NOT EXISTS DBInfo
CREATE TABLE IF NOT EXISTS DBInfo
(
(
SchemaVersion INTEGER
SchemaVersion INTEGER