Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
d0ce796
Search Configuration: Refactor and restructure
geofranzi Feb 4, 2026
60a9348
#2243 added in output metadata manager and available in metadata api
DavidBlaa Feb 5, 2026
3891c87
Documentation: Add copy and tag icon #2371
geofranzi Feb 7, 2026
cd1b655
Load manifest dynamic, load based on entity template #2296
geofranzi Feb 8, 2026
31f86e2
Add example components, add ts widget for testing #1741 #2361 #1013
geofranzi Feb 8, 2026
1d52a4c
Add component catalog #1741 #2361 #1013
geofranzi Feb 8, 2026
a6ce9f1
Add display name and backend calls #2374
geofranzi Feb 8, 2026
e564f62
#2376 @comment id
Feb 9, 2026
e630b41
#1013 fix enum list do metadat schema export via api and add dropdown…
DavidBlaa Feb 12, 2026
3110e7f
Merge branch 'rc' of https://github.com/BEXIS2/Core into rc
DavidBlaa Feb 12, 2026
f9af2bd
#2374 add description
DavidBlaa Feb 13, 2026
ca9ce12
Merge branch 'rc' of https://github.com/BEXIS2/Core into rc
geofranzi Feb 16, 2026
814654a
Add extraction of "ref" attribute #2361
geofranzi Feb 16, 2026
eea0a5b
Correct link on index page to new name for componentconfig #2361
geofranzi Feb 16, 2026
ff2269a
fix api call api/datasets/citations #2383
EleonoraPetzold Feb 16, 2026
45e8480
remove user permissions check #2382
EleonoraPetzold Feb 16, 2026
8bc4a0e
#2374 change edit metadat to seperate component and cvreate a main pa…
DavidBlaa Feb 16, 2026
0159adb
Merge pull request #2387 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Feb 17, 2026
ecc7d97
#2385 change validation is working
DavidBlaa Feb 17, 2026
43b3ce6
#2385 centralize the header
DavidBlaa Feb 17, 2026
de92c33
Merge pull request #2388 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Feb 17, 2026
5b2f29c
#2384 change the update to use the start and end date that come along…
sventhiel Feb 19, 2026
bc3898d
#2389 change the behavior of the version manager + modify the usages.
sventhiel Feb 19, 2026
af226db
#2152 update text for password reset
sventhiel Feb 19, 2026
9f33ee5
#2152 change the retrieval to get displayname or name (if displayname…
sventhiel Feb 19, 2026
5d37e34
#2385 fix issues in choice validation
DavidBlaa Feb 20, 2026
ab049d8
#2385 add enum in validation
DavidBlaa Feb 26, 2026
e6285f4
#2385 update validation store after change a input field. also add er…
DavidBlaa Feb 26, 2026
7c64068
#2385 add anyOf choices
DavidBlaa Feb 26, 2026
bcf3909
#2385 add property to checklist for horizontal order, fix some layout…
DavidBlaa Feb 27, 2026
f30c720
#2385 add left nav for fast go throw topics
DavidBlaa Mar 2, 2026
5268e21
#2385 refactor file structure, validationfn react on validatiuon stor…
DavidBlaa Mar 2, 2026
96538b4
Merge pull request #2391 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 2, 2026
72e180e
#2385 seperate validation and button functions into metadata function
DavidBlaa Mar 2, 2026
93becd8
Merge pull request #2392 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 2, 2026
5b8531b
double url fix #2393
EleonoraPetzold Mar 2, 2026
07deb9a
startdate and enddate will be preserved with edit/save #2384
EleonoraPetzold Mar 3, 2026
903d097
Update PartyManager.cs
sventhiel Mar 3, 2026
2c7319a
#367 add min and max to inpoutfield and set boundaries from schema
DavidBlaa Mar 5, 2026
0b47cb7
Citation API: use tag number #2394
EleonoraPetzold Mar 6, 2026
f7dbb67
#2385 handle optional complex objects in validation and activation
DavidBlaa Mar 9, 2026
15d3af5
#2385 fix issue by activate and deactivat
DavidBlaa Mar 9, 2026
2564c16
#2385 click the errors go to fields even ther are closed
DavidBlaa Mar 9, 2026
da77c01
#2385 remove padding from functions component
DavidBlaa Mar 9, 2026
2d926b5
Merge pull request #2398 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 9, 2026
cc627cb
2385 remove content padding
DavidBlaa Mar 9, 2026
db45a30
#2385 integrate metadata form as beta in bexis2
DavidBlaa Mar 9, 2026
913e0ec
Merge pull request #2399 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 9, 2026
e25a73f
#2400 add new display-pattern. "yyyy-MM-dd hh:mm:ss"
DavidBlaa Mar 10, 2026
31bebc4
#2397 fix missing custom help entries from settings.
DavidBlaa Mar 10, 2026
8c4ec7a
#2396 fix firefoix change issue in tag info management
DavidBlaa Mar 12, 2026
fe214cb
Merge pull request #2402 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 12, 2026
d35ccd7
#2404 get the correct name from content descriptor to fix bug in down…
DavidBlaa Mar 12, 2026
610db76
Merge pull request #2405 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 12, 2026
e41e19f
#2406 fix download requirements issue
DavidBlaa Mar 12, 2026
05bda2e
Merge pull request #2407 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 12, 2026
7f3704a
#2385 fix issues during saveing with choices elements and
DavidBlaa Mar 13, 2026
4656360
#2385 remove validation button add comment input field
DavidBlaa Mar 13, 2026
745f90b
Merge pull request #2408 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 13, 2026
4964e7b
#2385 update bexis2-core-ui in alle scvelte ui projects
DavidBlaa Mar 13, 2026
68a58f2
Merge pull request #2409 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 13, 2026
665eccd
#2377 fix issue parameter istrue even set to false
DavidBlaa Mar 13, 2026
3b554c4
Merge pull request #2410 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 13, 2026
d99ef65
#2385 add parameters to metadata api output in json simplifiy = 1
DavidBlaa Mar 16, 2026
d0a6eb9
#2411 update/modify subject related classes and usages within securit…
sventhiel Mar 16, 2026
3a1d2f5
#2412 add IoC and DI related changes
sventhiel Mar 16, 2026
78ce2b1
#2412 add appropriate IoC and DI, update/consolidate related libs
sventhiel Mar 16, 2026
845fc7a
#2412 add appropriate IoC and DI
sventhiel Mar 16, 2026
1ed1e7e
#2411 change call of entity permission manager
sventhiel Mar 16, 2026
7297a18
#2412 update/consolidate related libs
sventhiel Mar 16, 2026
56a3b6d
#2411 add new function to retrieve display name of user
sventhiel Mar 16, 2026
d5c45c2
#2412 update/consolidate related lib(s)
sventhiel Mar 16, 2026
40e4e92
#2411 change usage of user manager within bam controllers
sventhiel Mar 16, 2026
b995cba
#2411 update controllers of dcm and ddm
sventhiel Mar 16, 2026
186988e
#2411 update identity related managers within the rest of areas (ui p…
sventhiel Mar 16, 2026
80af923
#2411, #2412 modify usage of identity related managers and retrieval …
sventhiel Mar 16, 2026
38f3cbc
Merge branch 'rc' of https://github.com/bexis2/core into rc
sventhiel Mar 16, 2026
800d4c5
#2416 update retrieval of IoC factory only for valid controllers
sventhiel Mar 24, 2026
90f754c
#2417 znetralize templates and use ids instead of full templates
DavidBlaa Mar 24, 2026
a5b3e66
Merge pull request #2418 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 24, 2026
6359062
#2416 update IoCControllerFactory
sventhiel Mar 24, 2026
2be02fd
#2419
DavidBlaa Mar 24, 2026
efb6d8e
Merge pull request #2420 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 24, 2026
5fcb18f
#2400 add displaypattern
DavidBlaa Mar 24, 2026
e9d4438
Merge pull request #2421 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 24, 2026
12459de
#2423
DavidBlaa Mar 26, 2026
60c4ec4
#2416 remove user manager depency injection for api controllers becau…
sventhiel Mar 26, 2026
6163785
Merge branch 'rc' of https://github.com/bexis2/core into rc
sventhiel Mar 26, 2026
6a095b4
Merge remote-tracking branch 'origin/rc' into 1013-refactoring-metada…
DavidBlaa Mar 26, 2026
e73f5ee
#2424 fix name issue by download package when using baxeis2 in tag mode
DavidBlaa Mar 26, 2026
0f59550
Merge pull request #2425 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 26, 2026
4043c7a
add proper bexisapiauthorize filter
sventhiel Mar 26, 2026
bc1e0c6
#2375 add ids to menu and hide beta edit metadata button
DavidBlaa Mar 27, 2026
87a7b83
Merge pull request #2426 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 27, 2026
3f46bbe
#2169 set title instead of key in lists as label
DavidBlaa Mar 27, 2026
e155e4e
#2372 fix Darwin Core Check: Setting is false, but it is shown
DavidBlaa Mar 27, 2026
b099c6e
#2380 fix: Entity Template: if the entity template supports many file…
DavidBlaa Mar 27, 2026
dcec103
#2191 fix: Upload Attachement: Error shown twice
DavidBlaa Mar 27, 2026
2c73089
#2416 update ioc/di usage for api controllers
sventhiel Mar 27, 2026
b7bca47
Merge branch 'rc' of https://github.com/bexis2/core into rc
sventhiel Mar 27, 2026
a24ea32
#2379 fix Entity Template Order: Enable a actively defined order inst…
DavidBlaa Mar 27, 2026
2733ffb
Merge pull request #2427 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Mar 27, 2026
ccce448
#2416 change accessibility of api controllers and fallback within api…
sventhiel Mar 29, 2026
bbd6f7a
#2267 change menu generation within mvc views
sventhiel Mar 31, 2026
edb3bb1
#2267 change menu controller to return proper values for svelte menu …
sventhiel Mar 31, 2026
5cf9c76
#2267 check for null user object
sventhiel Mar 31, 2026
ac46197
#2385 fix isuue with parameters in json, test are fixed
DavidBlaa Mar 31, 2026
81f4113
#2429 update BEXIS2 projects that use Vaelastrasz.Library
sventhiel Apr 1, 2026
1c81ab5
Merge pull request #2433 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Apr 2, 2026
91a16ff
#2429 update vaelastrasz.library
sventhiel Apr 2, 2026
0cb2b7b
#2438 add model for security related information, change general sett…
sventhiel Apr 13, 2026
4ccb604
#2428 add function to retrieve security settings
sventhiel Apr 13, 2026
66d9b2e
change workspace to be rc branch
sventhiel Apr 13, 2026
892fae0
update pointer of workspace submodule
sventhiel Apr 14, 2026
5eb9979
update pointer of workspace submodule
sventhiel Apr 14, 2026
575bfdd
set branch for submodule to be the name of the current main repositro…
sventhiel Apr 14, 2026
1a648fe
update workspace
sventhiel Apr 14, 2026
f9be898
#2438 generate jwt key during application start up
sventhiel Apr 16, 2026
964532b
#2438 change general settings
sventhiel Apr 17, 2026
0ea5d83
#2435 update single datasets via metadata changes set not to async an…
DavidBlaa Apr 20, 2026
bdd9e7b
Merge pull request #2439 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Apr 20, 2026
e349e27
#2243 add metadata.txt flatten metadata to download zip
DavidBlaa Apr 20, 2026
7a00092
Merge pull request #2440 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Apr 20, 2026
406c277
Provide API call to get a tag version of the citation #2394
EleonoraPetzold Apr 20, 2026
77ed544
Merge branch 'rc' of https://github.com/BEXIS2/Core into rc
EleonoraPetzold Apr 20, 2026
263955a
#2441 fix total count in datagrid
DavidBlaa Apr 21, 2026
a85abd7
#2442 fix unit tests
DavidBlaa Apr 21, 2026
594afaf
Merge pull request #2443 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Apr 21, 2026
155dc31
#2441 forgot to remove one line
DavidBlaa Apr 21, 2026
3e6947e
Merge pull request #2445 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Apr 21, 2026
21aa246
#2442 update versionnr and readme
DavidBlaa Apr 21, 2026
c1d55b5
Merge pull request #2446 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Apr 21, 2026
fb498b1
update release notes #2442
geofranzi Apr 26, 2026
95291b2
#2448 change header of email when exception is thrown
DavidBlaa Apr 27, 2026
630b7ea
#2447 add update system variables when copy a dataset
DavidBlaa Apr 27, 2026
79f92d5
#2444 copied missing values also when copy datastructure
DavidBlaa Apr 27, 2026
df23fc5
Merge pull request #2451 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Apr 27, 2026
62bd827
#2452 fix missing value placeholder by strings
DavidBlaa Apr 27, 2026
8ae9f9c
Merge pull request #2453 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Apr 27, 2026
19a47c6
fix if usetags = true and version api call #2394
EleonoraPetzold Apr 27, 2026
698b86b
#2442 update release notes
DavidBlaa Apr 28, 2026
c1448f5
Merge pull request #2455 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Apr 28, 2026
2757364
#2442 update release notes
DavidBlaa Apr 28, 2026
0d1e432
Merge pull request #2456 from BEXIS2/1013-refactoring-metadata-edit
DavidBlaa Apr 28, 2026
4d9a5d3
Merge rc
EleonoraPetzold Apr 28, 2026
8633374
merge rc
EleonoraPetzold Apr 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[submodule "Console/Workspace"]
path = Console/Workspace
url = https://github.com/BEXIS2/Workspace.git
branch = .
[submodule "Components/Vaiona"]
path = Components/Vaiona
url = https://github.com/BEXIS2/VWF.Mvc.git
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@
<Reference Include="Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Castle.Core.4.4.1\lib\net45\Castle.Core.dll</HintPath>
</Reference>
<Reference Include="FluentAssertions, Version=5.10.3.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\FluentAssertions.5.10.3\lib\net47\FluentAssertions.dll</HintPath>
</Reference>
<Reference Include="Iesi.Collections, Version=4.0.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Iesi.Collections.4.0.4\lib\net461\Iesi.Collections.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -91,7 +88,7 @@
<HintPath>..\..\..\packages\Moq.4.8.1\lib\net45\Moq.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath>..\..\..\packages\Newtonsoft.Json.13.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="NHibernate, Version=5.4.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\NHibernate.5.4.9\lib\net48\NHibernate.dll</HintPath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ namespace BExIS.Security.Services.Tests.Subjects
[TestFixture]
public class GroupManagerTests
{
private readonly GroupManager _groupManager;



[OneTimeSetUp]
public void OneTimeSetUp()
{
Expand All @@ -28,15 +32,11 @@ public void OneTimeTearDown()

public void CreateAsync_GroupIsNull_ReturnZero()
{
//Arrange
using (var a = new GroupManager())
{
//Act
var result = a.CreateAsync(null);

//Assert
Assert.That(result, Is.EqualTo(0));
}
//Act
var result = _groupManager.CreateAsync(null);

//Assert
Assert.That(result, Is.EqualTo(0));
}
}
}
3 changes: 1 addition & 2 deletions Components/AAA/BExIS.Security.Services.Tests/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<packages>
<package id="Antlr3.Runtime" version="3.5.1" targetFramework="net48" />
<package id="Castle.Core" version="4.4.1" targetFramework="net48" />
<package id="FluentAssertions" version="5.10.3" targetFramework="net48" />
<package id="Iesi.Collections" version="4.0.4" targetFramework="net48" />
<package id="Microsoft.AspNet.Identity.Core" version="2.2.4" targetFramework="net48" />
<package id="Microsoft.AspNet.Identity.Owin" version="2.2.4" targetFramework="net48" />
Expand All @@ -14,7 +13,7 @@
<package id="Microsoft.Owin.Security.Cookies" version="4.2.2" targetFramework="net48" />
<package id="Microsoft.Owin.Security.OAuth" version="4.2.2" targetFramework="net48" />
<package id="Moq" version="4.8.1" targetFramework="net48" />
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net48" />
<package id="Newtonsoft.Json" version="13.0.4" targetFramework="net48" />
<package id="NHibernate" version="5.4.9" targetFramework="net48" />
<package id="Npgsql" version="4.0.17" targetFramework="net48" />
<package id="NUnit" version="3.14.0" targetFramework="net48" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,10 @@

namespace BExIS.Security.Services.Authentication
{
public class LdapAuthenticationManager : IDisposable
public class LdapAuthenticationManager
{
private readonly IUnitOfWork _guow;
private bool _isDisposed;

private readonly List<LdapConfiguration> _ldapConfigurations;

public LdapAuthenticationManager()
{
_guow = this.GetIsolatedUnitOfWork();
_ldapConfigurations = GeneralSettings.LdapConfigurations;
}

~LdapAuthenticationManager()
{
Dispose(true);
}

public void Dispose()
{
Dispose(true);
}

public User GetUser(string name, string username, string password)
{
Expand Down Expand Up @@ -88,18 +70,5 @@ public SignInStatus ValidateUser(string name, string username, string password)

return SignInStatus.Failure;
}

protected virtual void Dispose(bool disposing)
{
if (!_isDisposed)
{
if (disposing)
{
if (_guow != null)
_guow.Dispose();
_isDisposed = true;
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
using BExIS.Security.Entities.Subjects;
using BExIS.Security.Services.Subjects;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Microsoft.Owin.Security;
using Org.BouncyCastle.Crypto;
using Vaiona.IoC;

namespace BExIS.Security.Services.Authentication
{
public sealed class SignInManager : SignInManager<User, long>
public class SignInManager : SignInManager<User, long>
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Reliability", "CA2000:Objekte verwerfen, bevor Bereich verloren geht", Justification = "<Ausstehend>")]
public SignInManager(IAuthenticationManager authenticationManager, UserManager userManager)
: base(new IdentityUserService(userManager), authenticationManager)
// Konstruktor bleibt gleich
public SignInManager(
UserManager userManager,
IAuthenticationManager authenticationManager)
: base(userManager, authenticationManager)
{ }

public static SignInManager Create(IdentityFactoryOptions<SignInManager> options, IOwinContext context)
{
var userManager = IoCFactory.Container.Resolve<UserManager>(); // ← aus Unity!
var authManager = context.Authentication;
return new SignInManager(userManager, authManager);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Vaiona.Persistence.Api;
using Vaiona.Utils.Cfg;
Expand All @@ -15,30 +16,42 @@

namespace BExIS.Security.Services.Authorization
{
public class EntityPermissionManager : IDisposable
public class EntityPermissionManager
{
private readonly IUnitOfWork _guow;
private bool _isDisposed;

public EntityPermissionManager()
public int Count()
{
_guow = this.GetIsolatedUnitOfWork();
EntityPermissionRepository = _guow.GetReadOnlyRepository<EntityPermission>();
using (var uow = this.GetUnitOfWork())
{
var entityPermissionRepository = uow.GetReadOnlyRepository<EntityPermission>();
return entityPermissionRepository.Query().Count();
}
}

~EntityPermissionManager()
public int Count(Expression<Func<Group, bool>> predicate)
{
Dispose(true);
using (var uow = this.GetUnitOfWork())
{
var entityPermissionRepository = uow.GetReadOnlyRepository<EntityPermission>();
return entityPermissionRepository.Query(predicate).Count();
}
}

public IReadOnlyRepository<EntityPermission> EntityPermissionRepository { get; }
public IQueryable<EntityPermission> EntityPermissions => EntityPermissionRepository.Query();
public IList<EntityPermission> Get()
{
using (var uow = this.GetUnitOfWork())
{
var entityPermissionRepository = uow.GetReadOnlyRepository<EntityPermission>();

var entityPermissions = entityPermissionRepository.Get();
return entityPermissions;
}
}

public async Task<bool> CreateAsync(EntityPermission entityPermission)
{
using (var uow = this.GetUnitOfWork())
{
var entityPermissionRepository = _guow.GetRepository<EntityPermission>();
var entityPermissionRepository = uow.GetRepository<EntityPermission>();
var result = entityPermissionRepository.Put(entityPermission);
uow.Commit();

Expand Down Expand Up @@ -175,11 +188,6 @@ public async Task<bool> DeleteAsync(long entityPermissionId)
}
}

public void Dispose()
{
Dispose(true);
}

public async Task<bool> ExistsAsync(long entityId, long key)
{
using (var uow = this.GetUnitOfWork())
Expand Down Expand Up @@ -232,6 +240,16 @@ public async Task<bool> ExistsAsync(Subject subject, Entity entity, long key)
}
}

public IList<EntityPermission> Find(Expression<Func<EntityPermission, bool>> predicate)
{
using (var uow = this.GetUnitOfWork())
{
var entityPermissionRepository = uow.GetReadOnlyRepository<EntityPermission>();
var entityPermissions = entityPermissionRepository.Query(predicate).ToList();
return entityPermissions;
}
}

public async Task<EntityPermission> FindAsync(long entityId, long instanceId)
{
using (var uow = this.GetUnitOfWork())
Expand Down Expand Up @@ -578,12 +596,5 @@ public async Task UpdateAsync(EntityPermission entity)

await Task.CompletedTask;
}

protected void Dispose(bool disposing)
{
if (_isDisposed || !disposing) return;
_guow?.Dispose();
_isDisposed = true;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public async Task<bool> HasAccessAsync<T>(string subjectName, string module, str
if (operation == null) return false;

var feature = operation?.Feature;
var subject = SubjectRepository.Query(s => s.Name.ToUpperInvariant() == subjectName.ToUpperInvariant() && s is T).FirstOrDefault();
var subject = !string.IsNullOrEmpty(subjectName) ? SubjectRepository.Query(s => s.Name.ToUpperInvariant() == subjectName.ToUpperInvariant() && s is T).FirstOrDefault() : null;

//both exits
if (feature != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,18 @@
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="Antlr3.Runtime, Version=3.5.0.2, Culture=neutral, PublicKeyToken=eb42632606e9261f, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Antlr3.Runtime.3.5.1\lib\net40-client\Antlr3.Runtime.dll</HintPath>
</Reference>
<Reference Include="BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0e99375e54769942, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Portable.BouncyCastle.1.9.0\lib\net40\BouncyCastle.Crypto.dll</HintPath>
</Reference>
<Reference Include="BouncyCastle.Cryptography, Version=2.0.0.0, Culture=neutral, PublicKeyToken=072edcf4a5328938, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\BouncyCastle.Cryptography.2.4.0\lib\net461\BouncyCastle.Cryptography.dll</HintPath>
</Reference>
<Reference Include="Iesi.Collections, Version=4.0.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Iesi.Collections.4.0.4\lib\net461\Iesi.Collections.dll</HintPath>
</Reference>
<Reference Include="MailKit, Version=3.1.0.0, Culture=neutral, PublicKeyToken=4e064fe7c44a8f1b, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\MailKit.3.1.1\lib\net48\MailKit.dll</HintPath>
</Reference>
Expand All @@ -67,6 +73,7 @@
<Reference Include="Microsoft.AspNet.Identity.Owin, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.AspNet.Identity.Owin.2.2.4\lib\net45\Microsoft.AspNet.Identity.Owin.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.IdentityModel.JsonWebTokens, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.IdentityModel.JsonWebTokens.5.7.0\lib\net461\Microsoft.IdentityModel.JsonWebTokens.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -104,14 +111,23 @@
<HintPath>..\..\..\packages\MimeKit.4.8.0\lib\net48\MimeKit.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath>..\..\..\packages\Newtonsoft.Json.13.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="NHibernate, Version=5.4.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\NHibernate.5.4.9\lib\net48\NHibernate.dll</HintPath>
</Reference>
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
</Reference>
<Reference Include="Owin.Security.Providers.Orcid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1328b8c16b108c43, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Owin.Security.Providers.Orcid.2.26.0\lib\net45\Owin.Security.Providers.Orcid.dll</HintPath>
</Reference>
<Reference Include="Remotion.Linq, Version=2.2.0.0, Culture=neutral, PublicKeyToken=fee00910d6e5f53b, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Remotion.Linq.2.2.0\lib\net45\Remotion.Linq.dll</HintPath>
</Reference>
<Reference Include="Remotion.Linq.EagerFetching, Version=2.2.0.0, Culture=neutral, PublicKeyToken=fee00910d6e5f53b, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Remotion.Linq.EagerFetching.2.2.0\lib\net45\Remotion.Linq.EagerFetching.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
Expand All @@ -138,9 +154,12 @@
<HintPath>..\..\..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Security" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\portable-net45+win8+wp8+wpa81\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Transactions" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="Vaiona.Entities">
<HintPath>..\..\Vaiona\Vaiona.Entities\bin\Release\Vaiona.Entities.dll</HintPath>
Expand All @@ -166,11 +185,11 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Requests\DecisionManager.cs" />
<Compile Include="Requests\RequestManager.cs" />
<Compile Include="Subjects\IdentityGroupService.cs" />
<Compile Include="Subjects\IdentityUserService.cs" />
<Compile Include="Subjects\GroupStore.cs" />
<Compile Include="Subjects\UserManager.cs" />
<Compile Include="Subjects\GroupManager.cs" />
<Compile Include="Subjects\SubjectManager.cs" />
<Compile Include="Subjects\UserManager.cs" />
<Compile Include="Subjects\UserStore.cs" />
<Compile Include="Utilities\Auth.cs" />
<Compile Include="Utilities\EmailService.cs" />
<Compile Include="Utilities\MessageHelper.cs" />
Expand All @@ -194,6 +213,10 @@
<Project>{0815d220-3625-4e23-bbbc-8152345637fe}</Project>
<Name>Vaiona.Entities</Name>
</ProjectReference>
<ProjectReference Include="..\..\Vaiona\Vaiona.IoC\Vaiona.IoC.csproj">
<Project>{29A7BE0F-A17C-4AE8-8CA1-15FE4DD74129}</Project>
<Name>Vaiona.IoC</Name>
</ProjectReference>
<ProjectReference Include="..\..\Vaiona\Vaiona.Persistence.Api\Vaiona.Persistence.Api.csproj">
<Project>{640bf81d-354a-4bf0-85fc-f0ad587cf8a2}</Project>
<Name>Vaiona.Persistence.Api</Name>
Expand Down
Loading
Loading