diff --git a/.editorconfig b/.editorconfig index a316a6c1..72265319 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,6 +4,11 @@ root = true #### Naming styles #### [*.cs] + +end_of_line = lf +tab_width = 4 +indent_size = 4 + # Naming rules dotnet_naming_rule.private_or_internal_field_should_be_begins_with__.severity = suggestion @@ -91,9 +96,6 @@ dotnet_naming_style.pascal_case.required_suffix = dotnet_naming_style.pascal_case.word_separator = dotnet_naming_style.pascal_case.capitalization = pascal_case dotnet_style_operator_placement_when_wrapping = beginning_of_line -tab_width = 4 -indent_size = 4 -end_of_line = crlf dotnet_style_coalesce_expression = true:suggestion dotnet_style_null_propagation = true:suggestion dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion diff --git a/src/Storage.Interface/Models/Application.cs b/src/Storage.Interface/Models/Application.cs index de3a6ba1..b5cc13fb 100644 --- a/src/Storage.Interface/Models/Application.cs +++ b/src/Storage.Interface/Models/Application.cs @@ -110,6 +110,18 @@ public class Application : ChangableElement public CopyInstanceSettings CopyInstanceSettings { get; set; } + /// + /// Gets or sets a boolean value indicating if users (user tokens) are disallowed from instantiating. + /// Default value is false. + /// + /// + /// If set to true, only organisations/system users can instantiate apps, but users + /// can still copy their own instances (if copying is enabled in the app). + /// Note that this configuration only affects production environment (to make testing easier). + /// + [JsonProperty(PropertyName = "disallowUserInstantiation")] + public bool DisallowUserInstantiation { get; set; } + /// public override string ToString() { diff --git a/src/Storage.Interface/Models/PartyTypesAllowed.cs b/src/Storage.Interface/Models/PartyTypesAllowed.cs index fd4e7dfd..e0a25550 100644 --- a/src/Storage.Interface/Models/PartyTypesAllowed.cs +++ b/src/Storage.Interface/Models/PartyTypesAllowed.cs @@ -3,32 +3,33 @@ namespace Altinn.Platform.Storage.Interface.Models { /// - /// Represents an set of settings where application owner can define what types of parties - /// that are allowed to instantiate an application. + /// Represents a set of settings where application owner can define what types of parties + /// that are allowed to be owners of an instance in an application. /// + /// If all values are set to false (the default), then all types are allowed as owners [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public class PartyTypesAllowed { /// - /// Gets or sets a value indicating whether a bankruptcy estate is allowed to instantiate. + /// Gets or sets a value indicating whether a bankruptcy estate is allowed to be the owner of an instance. /// [JsonProperty(PropertyName = "bankruptcyEstate")] public bool BankruptcyEstate { get; set; } /// - /// Gets or sets a value indicating whether an organisation is allowed to instantiate. + /// Gets or sets a value indicating whether an organisation is allowed to be the owner of an instance. /// [JsonProperty(PropertyName = "organisation")] public bool Organisation { get; set; } /// - /// Gets or sets a value indicating whether a person is allowed to instantiate. + /// Gets or sets a value indicating whether a person is allowed to be the owner of an instance. /// [JsonProperty(PropertyName = "person")] public bool Person { get; set; } /// - /// Gets or sets a value indicating whether a sub unit is allowed to instantiate. + /// Gets or sets a value indicating whether a sub unit is allowed to be the owner of an instance. /// [JsonProperty(PropertyName = "subUnit")] public bool SubUnit { get; set; }