Skip to content

Commit

Permalink
Updated manager reference. Added permissions example, fixes #35
Browse files Browse the repository at this point in the history
  • Loading branch information
tidyui committed Aug 26, 2020
1 parent 6d83b06 commit 2720d97
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nuspec/Piranha.Templates.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Piranha.Templates</id>
<version>8.4.2</version>
<version>8.4.3</version>
<title>Piranha CMS Templates</title>
<authors>Piranha CMS</authors>
<owners>Piranha CMS</owners>
Expand Down
2 changes: 1 addition & 1 deletion src/empty/Empty.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageReference Condition="$(UsePostgreSql) == True" Include="Piranha.Data.EF.PostgreSql" Version="8.4.0" />
<PackageReference Include="Piranha.ImageSharp" Version="8.4.0" />
<PackageReference Condition="$(UseBlobStorage) != True" Include="Piranha.Local.FileStorage" Version="8.4.0" />
<PackageReference Include="Piranha.Manager" Version="8.4.0" />
<PackageReference Include="Piranha.Manager" Version="8.4.1" />
<PackageReference Include="Piranha.Manager.TinyMCE" Version="8.4.0" />
</ItemGroup>

Expand Down
10 changes: 10 additions & 0 deletions src/empty/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ public void ConfigureServices(IServiceCollection services)
options.UseIdentityWithSeed<IdentitySQLiteDb>(db =>
db.UseSqlite(_config.GetConnectionString("piranha")));
#endif
/***
* Here you can configure the different permissions
* that you want to use for securing content in the
* application.
options.UseSecurity(o =>
{
o.UsePermission("WebUser", "Web User");
});
*/
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/module/TemplateModule.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ItemGroup>
<PackageReference Include="Piranha" Version="8.4.2" />
<PackageReference Include="Piranha.AspNetCore" Version="8.4.1" />
<PackageReference Include="Piranha.Manager" Version="8.4.0" />
<PackageReference Include="Piranha.Manager" Version="8.4.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/web/mvc/MvcWeb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageReference Condition="$(UsePostgreSql) == True" Include="Piranha.Data.EF.PostgreSql" Version="8.4.0" />
<PackageReference Include="Piranha.ImageSharp" Version="8.4.0" />
<PackageReference Condition="$(UseBlobStorage) != True" Include="Piranha.Local.FileStorage" Version="8.4.0" />
<PackageReference Include="Piranha.Manager" Version="8.4.0" />
<PackageReference Include="Piranha.Manager" Version="8.4.1" />
<PackageReference Include="Piranha.Manager.TinyMCE" Version="8.4.0" />
</ItemGroup>

Expand Down
10 changes: 10 additions & 0 deletions src/web/mvc/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ public void ConfigureServices(IServiceCollection services)
options.UseIdentityWithSeed<IdentitySQLiteDb>(db =>
db.UseSqlite(_config.GetConnectionString("piranha")));
#endif
/***
* Here you can configure the different permissions
* that you want to use for securing content in the
* application.
options.UseSecurity(o =>
{
o.UsePermission("WebUser", "Web User");
});
*/
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/web/razor/RazorWeb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageReference Condition="$(UsePostgreSql) == True" Include="Piranha.Data.EF.PostgreSql" Version="8.4.0" />
<PackageReference Include="Piranha.ImageSharp" Version="8.4.0" />
<PackageReference Condition="$(UseBlobStorage) != True" Include="Piranha.Local.FileStorage" Version="8.4.0" />
<PackageReference Include="Piranha.Manager" Version="8.4.0" />
<PackageReference Include="Piranha.Manager" Version="8.4.1" />
<PackageReference Include="Piranha.Manager.TinyMCE" Version="8.4.0" />
</ItemGroup>

Expand Down
10 changes: 10 additions & 0 deletions src/web/razor/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ public void ConfigureServices(IServiceCollection services)
options.UseIdentityWithSeed<IdentitySQLiteDb>(db =>
db.UseSqlite(_config.GetConnectionString("piranha")));
#endif
/***
* Here you can configure the different permissions
* that you want to use for securing content in the
* application.
options.UseSecurity(o =>
{
o.UsePermission("WebUser", "Web User");
});
*/
});
}

Expand Down

0 comments on commit 2720d97

Please sign in to comment.