mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
name changes
This commit is contained in:
parent
796f0fc188
commit
6300c98bb7
27 changed files with 95 additions and 58 deletions
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Plex Requests .Net</title>
|
||||
<title>Ombi</title>
|
||||
<style media="all" type="text/css">
|
||||
@media all {
|
||||
.btn-primary table td:hover {
|
||||
|
@ -135,7 +135,7 @@
|
|||
<div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">
|
||||
|
||||
<!-- START CENTERED WHITE CONTAINER -->
|
||||
<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">Plex Requests</span>
|
||||
<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">Ombi</span>
|
||||
<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #fff; border-radius: 3px;" width="100%">
|
||||
|
||||
<!-- START MAIN CONTENT AREA -->
|
||||
|
@ -172,7 +172,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width="100%">
|
||||
<tr>
|
||||
<td class="content-block powered-by" style="font-family: sans-serif; vertical-align: top; padding-top: 10px; padding-bottom: 10px; font-size: 12px; color: #999999; text-align: center;" valign="top" align="center">
|
||||
Powered by <a href="https://github.com/tidusjar/PlexRequests.Net" style="color: #999999; font-size: 12px; text-align: center; text-decoration: underline;">Plex Requests .Net</a>
|
||||
Powered by <a href="https://github.com/tidusjar/Ombi" style="color: #999999; font-size: 12px; text-align: center; text-decoration: underline;">Ombi</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -32,6 +32,8 @@ using Nancy.Responses;
|
|||
using Nancy.Security;
|
||||
using Nancy.Session;
|
||||
using Ombi.Core.Models;
|
||||
using Ombi.Core.SettingModels;
|
||||
using Ombi.Core.Users;
|
||||
using Ombi.Helpers;
|
||||
using Ombi.Helpers.Permissions;
|
||||
using Ombi.Store.Repository;
|
||||
|
@ -40,16 +42,18 @@ namespace Ombi.Core
|
|||
{
|
||||
public class SecurityExtensions : ISecurityExtensions
|
||||
{
|
||||
public SecurityExtensions(IUserRepository userRepository, IResourceLinker linker, IPlexUserRepository plexUsers)
|
||||
public SecurityExtensions(IUserRepository userRepository, IResourceLinker linker, IPlexUserRepository plexUsers, ISettingsService<UserManagementSettings> umSettings)
|
||||
{
|
||||
UserRepository = userRepository;
|
||||
Linker = linker;
|
||||
PlexUsers = plexUsers;
|
||||
UserManagementSettings = umSettings;
|
||||
}
|
||||
|
||||
private IUserRepository UserRepository { get; }
|
||||
private IResourceLinker Linker { get; }
|
||||
private IPlexUserRepository PlexUsers { get; }
|
||||
private ISettingsService<UserManagementSettings> UserManagementSettings { get; }
|
||||
|
||||
public bool IsLoggedIn(NancyContext context)
|
||||
{
|
||||
|
@ -283,7 +287,12 @@ namespace Ombi.Core
|
|||
|
||||
private Permissions GetPermissions(string userName)
|
||||
{
|
||||
if (string.IsNullOrEmpty(userName)) return 0;
|
||||
if (string.IsNullOrEmpty(userName))
|
||||
{
|
||||
// Username without auth
|
||||
var s = UserManagementSettings.GetSettings();
|
||||
return (Permissions)UserManagementHelper.GetPermissions(s);
|
||||
}
|
||||
|
||||
var dbUser = UserRepository.GetUserByUsername(userName);
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ namespace Ombi.Core.SettingModels
|
|||
public bool ReportIssues { get; set; }
|
||||
public bool UsersCanViewOnlyOwnRequests { get; set; }
|
||||
public bool UsersCanViewOnlyOwnIssues { get; set; }
|
||||
public bool BypassRequestLimit { get; set; }
|
||||
|
||||
// Features
|
||||
public bool RecentlyAddedNotification { get; set; }
|
||||
|
|
|
@ -166,7 +166,7 @@ namespace Ombi.Core.StatusChecker
|
|||
{
|
||||
DownloadUri = downloadLink,
|
||||
ReleaseNotes = $"{branchDisplay} (See recent commits for details)",
|
||||
ReleaseTitle = $"Plex Requests {branchDisplay}",
|
||||
ReleaseTitle = $"Ombi {branchDisplay}",
|
||||
NewVersion = branchResult.build.version,
|
||||
UpdateUri = downloadLink,
|
||||
CurrentVersion = fileversion
|
||||
|
|
|
@ -46,6 +46,10 @@ namespace Ombi.Core.Users
|
|||
{
|
||||
permission += (int)Permissions.UsersCanViewOnlyOwnIssues;
|
||||
}
|
||||
if (settings.BypassRequestLimit)
|
||||
{
|
||||
permission += (int) Permissions.BypassRequestLimit;
|
||||
}
|
||||
|
||||
|
||||
return permission;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue