瀏覽代碼

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/SovBundle into develop

feature/ticket
Charly 3 年之前
父節點
當前提交
cdae4ce3cc
共有 3 個文件被更改,包括 15 次插入9 次删除
  1. +10
    -6
      Definition/RolesDefinition.php
  2. +2
    -2
      Resources/config/routes.yaml
  3. +3
    -1
      Resources/views/adminlte/layout.html.twig

+ 10
- 6
Definition/RolesDefinition.php 查看文件

@@ -6,18 +6,22 @@ namespace Lc\SovBundle\Definition;

class RolesDefinition implements RolesDefinitionInterface
{
const ROLE_USER = 'ROLE_USER' ;
const ROLE_ADMIN = 'ROLE_ADMIN' ;
const ROLE_SUPER_ADMIN = 'ROLE_SUPER_ADMIN' ;

protected $roles = array(
'ROLE_USER' => [
self::ROLE_USER => [
'label' => 'Utilisateurs',
'role' => 'ROLE_USER',
'role' => self::ROLE_USER,
],
'ROLE_ADMIN' => [
self::ROLE_ADMIN => [
'label' => 'Administrateurs',
'role' => 'ROLE_ADMIN',
'role' => self::ROLE_ADMIN,
],
'ROLE_SUPER_ADMIN' => [
self::ROLE_SUPER_ADMIN => [
'label' => 'SuperAdmin',
'role' => 'ROLE_SUPER_ADMIN',
'role' => self::ROLE_SUPER_ADMIN,
],
);


+ 2
- 2
Resources/config/routes.yaml 查看文件

@@ -16,9 +16,9 @@ sov_logout:

sov_admin_account_profile:
path: /admin/account/profile
controller: Lc\SovBundle\Controller\User\UserController::profile
controller: Lc\SovBundle\Controller\User\AccountAdminController::profile

sov_admin_account_password:
path: /admin/account/password
controller: Lc\SovBundle\Controller\User\UserController::changePassword
controller: Lc\SovBundle\Controller\User\AccountAdminController::changePassword


+ 3
- 1
Resources/views/adminlte/layout.html.twig 查看文件

@@ -13,7 +13,7 @@
<meta name="generator" content="EasyAdmin"/>
{% endblock head_metas %}

<title>{% block page_title %}{{ block('content_title')|striptags|raw }}{% endblock %}</title>
<title>{% block page_title %}Administration | {{ block('content_title')|striptags|raw }}{% endblock %}</title>

{# {% block head_stylesheets %}
<link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.css') }}">
@@ -196,6 +196,8 @@
{% endif %}
{% endif %}

{% block append_body %}{% endblock %}

</body>
{% endblock body %}
</html>

Loading…
取消
儲存