Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Database
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
libraries
Database
Merge requests
!186
New: Guest Role
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
New: Guest Role
Issue/2287-guestRole
into
master
Overview
0
Commits
5
Pipelines
7
Changes
64
Merged
Petar Hristov
requested to merge
Issue/2287-guestRole
into
master
2 years ago
Overview
0
Commits
5
Pipelines
7
Changes
64
Expand
coscine/issues#2287
coscine/issues#2374
DO NOT MERGE UNTIL EPIC IS DONE
Edited
2 years ago
by
Petar Hristov
0
0
Merge request reports
Compare
master
version 5
0b42412a
2 years ago
version 4
0b42412a
2 years ago
version 3
8c82b5cb
2 years ago
version 2
fb978500
2 years ago
version 1
ef28c972
2 years ago
master (base)
and
latest version
latest version
409312a3
5 commits,
2 years ago
version 5
0b42412a
4 commits,
2 years ago
version 4
0b42412a
4 commits,
2 years ago
version 3
8c82b5cb
3 commits,
2 years ago
version 2
fb978500
2 commits,
2 years ago
version 1
ef28c972
1 commit,
2 years ago
64 files
+
105
−
283
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
64
Search (e.g. *.vue) (Ctrl+P)
src/Database/Models/ActivatedFeaturesModel.cs
+
8
−
7
Options
@@ -42,10 +42,10 @@ namespace Coscine.Database.Models
if
(!
IsFeatureActive
(
projectId
,
featureId
))
{
Insert
(
new
ActivatedFeature
{
ProjectId
=
projectId
,
FeatureId
=
featureId
});
{
ProjectId
=
projectId
,
FeatureId
=
featureId
});
}
}
@@ -53,11 +53,12 @@ namespace Coscine.Database.Models
{
if
(
IsFeatureActive
(
projectId
,
featureId
))
{
foreach
(
var
feature
in
GetAllWhere
((
activatedFeatures
)
=>
activatedFeatures
.
FeatureId
==
featureId
&&
activatedFeatures
.
ProjectId
==
projectId
))
{
foreach
(
var
feature
in
GetAllWhere
((
activatedFeatures
)
=>
activatedFeatures
.
FeatureId
==
featureId
&&
activatedFeatures
.
ProjectId
==
projectId
))
{
Delete
(
feature
);
}
}
}
Loading