35 Commits

Author SHA1 Message Date
28dce6c9b6 Fixes #7656: Fixed yii\rbac\DbManager::getRolesByUser() and yii\rbac\PhpManager::getRolesByUser() to return roles only 2015-04-21 00:29:04 +03:00
b806fc7108 Corrected fix for #8032 2015-04-12 12:17:35 +03:00
82033125c4 Fixes #8032: yii\rbac\PhpManager::updateItem() was unable to rename item updated 2015-04-11 01:24:32 +03:00
2c02765229 Fixing wrong docs in RBAC PHPManager and wrong paths in security-authorization.md
close #5348
2014-10-04 12:22:34 +02:00
220b60f3b2 Fixes #4275: Added removeChildren() to yii\rbac\ManagerInterface and implementations 2014-09-30 02:07:54 +04:00
91f61bfc3b Fixed phpdoc 2014-09-06 01:44:44 +04:00
f4a9646a22 more on HHVM compatibility 2014-08-15 16:04:02 +02:00
74c99dc959 code style + test groups 2014-07-29 01:52:34 +02:00
d1ccb92a34 Fixes #4489: RBAC PhpManager wasn't saving multiple assignmentsFixes #4489: RBAC PhpManager wasn't saving multiple assignments properly 2014-07-28 22:09:38 +04:00
ed533172d7 Adjusted rbac ManagerInterface 2014-07-25 18:24:54 +04:00
c8a5012610 #4310: Removed $data from signature of yii\rbac\ManagerInterface 2014-07-21 19:50:29 +04:00
c68e5f1fdb Adjusted naming 2014-06-29 16:18:19 +04:00
3eee7b8e4b Fixes #4072: \yii\rbac\PhpManager adjustments
- Data is now stored in three separate files for items, assignments and rules. File format is simpler.
- Removed `authFile`. Added `itemsFile`, `assignmentsFile` and `rulesFile`.
- `createdAt` and `updatedAt` are now properly filled with corresponding file modification time.
- `save()` and `load()` are now protected instead of public.
- Added unit test for saving and loading data.
2014-06-29 03:32:46 +04:00
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
5c84d3fd42 Fixes #3817: yii\rbac\PhpManager::getChildren() returns null instead of expected empty array 2014-06-11 22:59:51 -04:00
f22953d092 Small typo in the framework/rbac/PhpManager.php 2014-05-21 11:42:40 +04:00
1641e057a9 VarDumper::export() applied over framework. 2014-05-20 16:35:12 +03:00
c27ac8ef0e updated phpdoc 2014-04-26 03:39:46 +02:00
14b782cf01 Added $user as the first parameter of yii\rbac\Rule::execute() 2014-04-16 21:52:46 -04:00
ce9a8f209a Fixes #3132: yii\rbac\PhpManager now supports more compact data file format 2014-04-16 10:17:28 -04:00
8ac8d487ad Fixes #3128: Fixed the bug that defaultRoles set in RBAC manager was not working as specified 2014-04-16 08:52:41 -04:00
c3f4e0057d Refactored yii\rbac\PhpManager
Replaced `clearAll()` and `clearAllAssignments()` in `yii\rbac\ManagerInterface` with `removeAll()`, `removeAllRoles()`, `removeAllPermissions()`, `removeAllRules()` and `removeAllAssignments()`
2014-04-15 16:45:29 -04:00
22596ca248 Implement new RBAC PhpManager 2014-04-15 16:10:04 +02:00
7bc52f32a4 Re-implemented RBAC by following more closely to the original NIST RBAC model. Dropped yii\rbac\PhpManager. 2014-04-12 16:55:50 -04:00
3fdcf11f24 updated phpdoc 2014-04-09 18:51:45 +02:00
e59b2d8948 refactored rule execution. [skip ci] 2014-04-08 08:40:37 -04:00
c8d1709912 Fixes #3016. 2014-04-07 14:02:31 -04:00
40eb116640 Splitted saveRule into insertRule and updateRule 2014-04-04 23:09:34 +04:00
7d3cf501d0 Fixed code formattins issues 2014-04-04 20:17:13 +04:00
0e6cbda43e RBAC: decoupled rules from assignments and items, implemented php manager 2014-04-04 04:40:06 +04:00
435747cf98 apidoc and codestyle fixes 2014-03-26 23:03:18 +01:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
262189533a huge amount of documentation link fixes 2014-01-28 17:54:40 +01:00
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00