Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/thyseus/yii-user-management
Browse files Browse the repository at this point in the history
  • Loading branch information
thyseus committed Jan 30, 2015
2 parents 447fc1b + 384ce08 commit 35bc7de
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
*.swp
*~
./nbproject
.DS_Store
.idea
2 changes: 1 addition & 1 deletion modules/profile/models/YumPrivacySetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function attributeLabels()
'message_new_friendship' => Yum::t('Receive a Email for new Friendship request'),
'message_new_message' => Yum::t('Receive a Email when new Message arrives'),
'message_new_profilecomment' => Yum::t('Receive a Email when a new profile comment was made'),
'log_profile_visits' => Yum::t('Profilbesuche preisgeben'),
'log_profile_visits' => Yum::t('Log profile visits'),

);
}
Expand Down
2 changes: 1 addition & 1 deletion modules/user/UserModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class UserModule extends CWebModule {
public $usernameRequirements=array(
'minLen'=>3,
'maxLen'=>30,
'match' => '/^[A-Za-z0-9@._-\s]+$/u',
'match' => '/^[A-Za-z0-9@._-]+$/u',
'dontMatchMessage' => 'Incorrect symbol\'s. (A-z0-9)',
);

Expand Down
18 changes: 3 additions & 15 deletions modules/user/controllers/YumUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,15 @@ class YumUserController extends YumController {
public function accessRules() {
return array(
array('allow',
'actions'=>array('index', 'view', 'login'),
'actions'=>array('login'),
'users'=>array('*'),
),
array('allow',
'actions'=>array('profile',
'logout',
'changepassword',
'passwordexpired',
'delete',
'browse'),
'actions'=>array('profile', 'logout', 'changepassword', 'passwordexpired', 'delete', 'browse'),
'users'=>array('@'),
),
array('allow',
'actions'=>array('admin',
'delete',
'create',
'update',
'list',
'assign',
'generateData',
'actions'=>array('admin', 'index', 'view', 'delete', 'create', 'update', 'list', 'assign', 'generateData',
'csv'),
'expression' => 'Yii::app()->user->isAdmin()'
),
Expand Down Expand Up @@ -416,5 +405,4 @@ public function loadUser($uid = 0)
}
return $this->_model;
}

}
8 changes: 4 additions & 4 deletions modules/user/views/install/start.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<tr>
<td>

<label for="installRole"> User Management </label>
<label> User Management </label>
<p>&nbsp;</p>
<table>
<tr>
Expand Down Expand Up @@ -112,7 +112,7 @@
</td>
<td>

<label for="installMessages"> Usergroups submodule </label>
<label> Usergroups submodule </label>
<?php echo CHtml::checkBox('installUsergroup', true); ?>
<div id="usergroup">
<table>
Expand All @@ -131,7 +131,7 @@
</td>
<td>

<label for="installMessages"> Friendship submodule </label>
<label> Friendship submodule </label>
<?php echo CHtml::checkBox('installFriendship', true); ?>
<div id="friendship">
<table>
Expand All @@ -144,7 +144,7 @@
</td>
<td>

<label for="installRole"> Profiles submodule </label>
<label> Profiles submodule </label>
<?php echo CHtml::checkBox('installProfiles', true); ?>

<div id="profiles">
Expand Down

0 comments on commit 35bc7de

Please sign in to comment.