fixing bugs

This commit is contained in:
Antonio Ramirez
2016-12-11 04:20:36 +01:00
parent 0834ad6ca0
commit 582c2fb715
8 changed files with 128 additions and 25 deletions

View File

@ -1,6 +1,6 @@
<?php
use dektrium\rbac\widgets\Assignments;
use AssignmentsWidget;
/**
* @var yii\web\View $this

View File

@ -17,13 +17,11 @@ use yii\bootstrap\Nav;
],
[
'label' => Yii::t('user', 'Roles'),
'url' => ['/rbac/role/index'],
'visible' => isset(Yii::$app->extensions['dektrium/yii2-rbac']),
'url' => ['/rbac/role/index']
],
[
'label' => Yii::t('user', 'Permissions'),
'url' => ['/rbac/permission/index'],
'visible' => isset(Yii::$app->extensions['dektrium/yii2-rbac']),
'url' => ['/rbac/permission/index']
],
[
'label' => Yii::t('user', 'Create'),
@ -34,13 +32,11 @@ use yii\bootstrap\Nav;
],
[
'label' => Yii::t('user', 'New role'),
'url' => ['/rbac/role/create'],
'visible' => isset(Yii::$app->extensions['dektrium/yii2-rbac']),
'url' => ['/rbac/role/create']
],
[
'label' => Yii::t('user', 'New permission'),
'url' => ['/rbac/permission/create'],
'visible' => isset(Yii::$app->extensions['dektrium/yii2-rbac']),
'url' => ['/rbac/permission/create']
],
],
],

View File

@ -1,6 +1,6 @@
<?php
use dektrium\user\widgets\Connect;
use Da\User\Widget\ConnectWidget;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
@ -78,7 +78,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?= Html::a(Yii::t('user', 'Don\'t have an account? Sign up!'), ['/user/registration/register']) ?>
</p>
<?php endif ?>
<?= Connect::widget(
<?= ConnectWidget::widget(
[
'baseAuthUrl' => ['/user/security/auth'],
]

View File

@ -1,17 +1,9 @@
<?php
/*
* This file is part of the Dektrium project.
*
* (c) Dektrium project <http://github.com/dektrium>
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
/**
* @var yii\web\View $this
* @var dektrium\user\Module $module
* @var \Da\User\Module $module
* @var string $title
*/
$this->title = $title;