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
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
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
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
Qiang Xue
07bcc8fda1
Fixes #8595 : Fixed `yii\rbac\DbManager::checkAccessFromCache()` to check against auth items loaded in cache recursively
9 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
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 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
Alexander Makarov
220b60f3b2
Fixes #4275 : Added `removeChildren()` to `yii\rbac\ManagerInterface` and implementations
10 years ago
RichWeber
92cd13a913
pull origin
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
ed533172d7
Adjusted rbac ManagerInterface
10 years ago
Alexander Makarov
c8a5012610
#4310 : Removed `$data` from signature of `yii\rbac\ManagerInterface`
10 years ago
Alexander Makarov
21910c61f9
Fixes #4310 : code cleanup
10 years ago
Alexander Makarov
d4711c4698
Fixes #4310
10 years ago
Alexander Makarov
e0b701bb87
Added SQL files for RBAC back
11 years ago
Alexander Makarov
12732cfa53
Fixed rbac tests to use migration
11 years ago
Alexander Makarov
42c566935e
Fixes #2913 : RBAC `DbManager` is now initialized via migration
11 years ago
Qiang Xue
2fb70cf00b
Fixes #3158
11 years ago
Qiang Xue
14b782cf01
Added `$user` as the first parameter of `yii\rbac\Rule::execute()`
11 years ago
Qiang Xue
8ac8d487ad
Fixes #3128 : Fixed the bug that `defaultRoles` set in RBAC manager was not working as specified
11 years ago
Qiang Xue
c3f4e0057d
Refactored `yii\rbac\PhpManager`
...
Replaced `clearAll()` and `clearAllAssignments()` in `yii\rbac\ManagerInterface` with `removeAll()`, `removeAllRoles()`, `removeAllPermissions()`, `removeAllRules()` and `removeAllAssignments()`
11 years ago
Qiang Xue
7bc52f32a4
Re-implemented RBAC by following more closely to the original NIST RBAC model. Dropped `yii\rbac\PhpManager`.
11 years ago
Carsten Brandt
3fdcf11f24
updated phpdoc
11 years ago
Qiang Xue
e59b2d8948
refactored rule execution. [skip ci]
11 years ago
Qiang Xue
c8d1709912
Fixes #3016 .
11 years ago
Alexander Makarov
40eb116640
Splitted saveRule into insertRule and updateRule
11 years ago
Alexander Makarov
7d3cf501d0
Fixed code formattins issues
11 years ago
Alexander Makarov
2c28198cd2
Fixes #499 : Decoupled `Rule` from RBAC `Item`
11 years ago
Alexander Makarov
0e6cbda43e
RBAC: decoupled rules from assignments and items, implemented php manager
11 years ago
Alexander Makarov
ab799d8ea9
Fixes #2911 : Removed `tbl_` default for table prefix
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
Qiang Xue
8e11ad0360
refactored code to use Instance::ensure()
11 years ago
Qiang Xue
8c2e39235f
Turn module and application into DI containers.
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago