Evgeniy Tkachenko
60086507db
Updated phpDoc to ManagerInterface::addChild()
9 years ago
Alexander Makarov
cc4849a3ae
Renamed getUserIDsByRole → getUserIdsByRole for consistency
...
See 0e0079bcae (commitcomment-14953758)
9 years ago
Daniel Gomez Pan
08034bbe10
Add @since [skip ci]
9 years ago
Alexander Makarov
0e0079bcae
Fixes #9573 : Added `yii\rbac\ManagerInterface::getUserIDsByRole()` and implementations
9 years ago
rezident1307
be407391ce
Fixes #10101 : Fixed assignments saving on role removing in `\yii\rbac\PhpManager`
9 years ago
Nikola Kovacs
0900641ed4
fix documentation
9 years ago
Adrian Liechti
43ce4e9192
Fixes #6876 : Fixed RBAC migration MSSQL cascade problem
9 years ago
Alexander Makarov
1b3770fd21
Use === instead of == where possible
9 years ago
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
9 years ago
jeicd
c2f83da8d8
Fix phpdoc
9 years ago
Alexander Makarov
7b12f59fa9
Fixed phpdoc in RBAC migration
9 years ago
Daniel Gomez Pan
b647bac451
Schema is never used
9 years ago
Yuri Nazarenko
0d4d54c3c7
Bug #9714 : Fixed unable to save users assignments
9 years ago
Vladimir
8c9a9ed877
Doc block confuse in ManagerInterface
...
Confisung documentation block for ManagerInterface::getRolesByUser(). The method DOES NOT return roles assigned indirectly.
9 years ago
Hesam Khaki
5569eaae06
Fixes #9314 : Fixed `yii\rbac\DbManager::getPermissionsByUser()` not returning permissions directly assigned to a user
9 years ago
Carsten Brandt
aef21ceec8
phpdoc typo
9 years ago
Carsten Brandt
681db52ba6
refactored SchemaBuilder
...
- rename class to ColumnSchemaBuilder as this is more appropriate
- changed internal organisation to match how the rest of schema related classes work
- the ColumnSchemaBuilder is now created the same way as QueryBuilder is
- removed static call magic and method annotations, now real methods are called as they are
- the whole code works on objects in a db context now instead of setting database connection in global state
- trait is now used by Migration by default but can be used in other contexts as well
Migration usage is now as follows:
```php
$this->createTable('example_table', [
'id' => $this->primaryKey(),
'name' => $this->string(64)->notNull(),
'type' => $this->integer()->notNull()->defaultValue(10),
'description' => $this->text(),
'rule_name' => $this->string(64),
'data' => $this->text(),
'created_at' => $this->datetime()->notNull(),
'updated_at' => $this->datetime(),
]);
```
9 years ago
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
9 years ago
Alexander Makarov
8b951796ac
Fixes #9263 : Avoid extra DB query in RBAC DbManager in case auth item name is empty
9 years ago
pana1990
9ae80e3a94
Update sintax
9 years ago
Qiang Xue
07bcc8fda1
Fixes #8595 : Fixed `yii\rbac\DbManager::checkAccessFromCache()` to check against auth items loaded in cache recursively
9 years ago
Evgeniy Tkachenko
632dbcf8c4
Updated comments in ManagerInterface
...
It is necessary that triggered tips of result on viewing variables.
close #8312
10 years ago
Nikola Kovacs
f11bdfa2a7
Grammar fix: followings -> following
10 years ago
Alexander Makarov
28dce6c9b6
Fixes #7656 : Fixed `yii\rbac\DbManager::getRolesByUser()` and `yii\rbac\PhpManager::getRolesByUser()` to return roles only
10 years ago
Alexander Makarov
b806fc7108
Corrected fix for #8032
10 years ago
ChristopheBrun
82033125c4
Fixes #8032 : `yii\rbac\PhpManager::updateItem()` was unable to rename item updated
10 years ago
Steven Michaels
3cddd3bab4
Include ruleTable in list of customizable tables [ci skip]
...
With the addition of ruleTable in 2.0, including it in the list of customizable tables in the class-level doc makes it easier to spot the difference from 1.1.
10 years ago
Qiang Xue
6e33bef238
Fixes #7266
10 years ago
Qiang Xue
d188dd10c0
Fixes #3168 : Improved the performance of `yii\rbac\DbManager::checkAccess()` by caching mechanism
10 years ago
Alexander Makarov
6481d13494
Optimized checks order in conditions
10 years ago
Qiang Xue
d341bf02b4
Fixes #6398 : Added support for specifying dependent component in terms of a configuration array for classes such as `DbCache`
10 years ago
wenbin1989
402d58cfd8
Fixes #6081 : `yii\rbac\DbManager::getChildren()` was not quoting column name properly
10 years ago
Qiang Xue
280dd1651d
Fixes #6172 : `yii\rbac\DbManager` should properly quote table and column names
10 years ago
Alexander Makarov
b8cb5e2a28
Fixes #4263 : Added migration and SQL schema files for `yii\log\DbTarget`
10 years ago
Alexander Mohorev
bb8550886e
PHP type casting
10 years ago
Qiang Xue
999e8b84d4
Fixes #5584 : `yii\rbac\DbRbacManager` should not delete items when deleting a rule on a database not supporting cascade update
10 years ago
mdmunir
f524e57076
use 'ON DELETE SET NULL' instead of 'ON DELETE CASCADE'
10 years ago
Alexander Makarov
b66c4cf42d
Fixes #5435 : Added extra checks to `yii\rbac\DbManager` to prevent database exceptions when `$userId` is empty
10 years ago
Nikola Trifunovic
2c02765229
Fixing wrong docs in RBAC PHPManager and wrong paths in security-authorization.md
...
close #5348
10 years ago
Alexander Makarov
220b60f3b2
Fixes #4275 : Added `removeChildren()` to `yii\rbac\ManagerInterface` and implementations
10 years ago
Carsten Brandt
8fa4899e02
use utf8_unicode_ci instead of utf8_general_ci
...
fixes #5119
10 years ago
Alexander Makarov
91f61bfc3b
Fixed phpdoc
10 years ago
Carsten Brandt
f4a9646a22
more on HHVM compatibility
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Alexander Makarov
2fc8cb4523
Fixes #4489 : Fixed MySQL RBAC manager
10 years ago
Carsten Brandt
74c99dc959
code style + test groups
10 years ago
Alexander Makarov
d1ccb92a34
Fixes #4489 : RBAC PhpManager wasn't saving multiple assignmentsFixes #4489 : RBAC PhpManager wasn't saving multiple assignments properly
10 years ago
Alexander Makarov
ed533172d7
Adjusted rbac ManagerInterface
10 years ago
Alexander Makarov
0edd8bc65a
Fixed missing and incorrect phpdoc
10 years ago