a099d68915
Initial Release; Includes Database and MVC refactoring
32 lines
671 B
C#
32 lines
671 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Disco.Services.Authorization;
|
|
using Disco.Models.Repository;
|
|
using Disco.Services.Users;
|
|
|
|
namespace Disco.Services.Web
|
|
{
|
|
[DiscoAuthorize]
|
|
public abstract class AuthorizedDatabaseController : DatabaseController
|
|
{
|
|
public AuthorizationToken Authorization
|
|
{
|
|
get
|
|
{
|
|
return UserService.CurrentAuthorization;
|
|
}
|
|
}
|
|
|
|
public User CurrentUser
|
|
{
|
|
get
|
|
{
|
|
return UserService.CurrentUser;
|
|
}
|
|
}
|
|
}
|
|
}
|