Commit Graph

75 Commits

Author SHA1 Message Date
Qiang Xue
07bcc8fda1 Fixes #8595: Fixed yii\rbac\DbManager::checkAccessFromCache() to check against auth items loaded in cache recursively 2015-05-29 10:42:32 -04:00
Evgeniy Tkachenko
632dbcf8c4 Updated comments in ManagerInterface
It is necessary that triggered tips of result on viewing variables.

close #8312
2015-05-07 11:37:55 +02:00
Nikola Kovacs
f11bdfa2a7 Grammar fix: followings -> following 2015-04-21 15:08:16 +02:00
Alexander Makarov
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
Alexander Makarov
b806fc7108 Corrected fix for #8032 2015-04-12 12:17:35 +03:00
ChristopheBrun
82033125c4 Fixes #8032: yii\rbac\PhpManager::updateItem() was unable to rename item updated 2015-04-11 01:24:32 +03:00
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.
2015-03-29 10:14:37 -05:00
Qiang Xue
6e33bef238 Fixes #7266 2015-02-13 14:02:54 -05:00
Qiang Xue
d188dd10c0 Fixes #3168: Improved the performance of yii\rbac\DbManager::checkAccess() by caching mechanism 2015-02-12 21:29:00 -05:00
Alexander Makarov
6481d13494 Optimized checks order in conditions 2015-02-08 17:56:36 +03:00
Qiang Xue
d341bf02b4 Fixes #6398: Added support for specifying dependent component in terms of a configuration array for classes such as DbCache 2015-01-04 19:28:05 -05:00
wenbin1989
402d58cfd8 Fixes #6081: yii\rbac\DbManager::getChildren() was not quoting column name properly 2014-11-27 00:28:55 +03:00
Qiang Xue
280dd1651d Fixes #6172: yii\rbac\DbManager should properly quote table and column names 2014-11-22 18:25:02 -05:00
Alexander Makarov
b8cb5e2a28 Fixes #4263: Added migration and SQL schema files for yii\log\DbTarget 2014-11-06 23:22:26 +03:00
Alexander Mohorev
bb8550886e PHP type casting 2014-10-25 15:30:03 +03:00
Qiang Xue
999e8b84d4 Fixes #5584: yii\rbac\DbRbacManager should not delete items when deleting a rule on a database not supporting cascade update 2014-10-16 08:13:31 -04:00
mdmunir
f524e57076 use 'ON DELETE SET NULL' instead of 'ON DELETE CASCADE' 2014-10-16 08:11:07 -04:00
Alexander Makarov
b66c4cf42d Fixes #5435: Added extra checks to yii\rbac\DbManager to prevent database exceptions when $userId is empty 2014-10-10 19:24:59 +04:00
Nikola Trifunovic
2c02765229 Fixing wrong docs in RBAC PHPManager and wrong paths in security-authorization.md
close #5348
2014-10-04 12:22:34 +02:00
Alexander Makarov
220b60f3b2 Fixes #4275: Added removeChildren() to yii\rbac\ManagerInterface and implementations 2014-09-30 02:07:54 +04:00
Carsten Brandt
8fa4899e02 use utf8_unicode_ci instead of utf8_general_ci
fixes #5119
2014-09-22 12:46:22 +02:00
Alexander Makarov
91f61bfc3b Fixed phpdoc 2014-09-06 01:44:44 +04:00
Carsten Brandt
f4a9646a22 more on HHVM compatibility 2014-08-15 16:04:02 +02:00
Carsten Brandt
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
Alexander Makarov
2fc8cb4523 Fixes #4489: Fixed MySQL RBAC manager 2014-07-29 11:10:31 +04:00
Carsten Brandt
74c99dc959 code style + test groups 2014-07-29 01:52:34 +02:00
Alexander Makarov
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
Alexander Makarov
ed533172d7 Adjusted rbac ManagerInterface 2014-07-25 18:24:54 +04:00
Alexander Makarov
0edd8bc65a Fixed missing and incorrect phpdoc 2014-07-25 17:26:35 +04:00
ilyaz
5f4801874c Update schema-mssql.sql
MSSQL syntax fix
2014-07-25 16:46:53 +04:00
Alexander Makarov
c8a5012610 #4310: Removed $data from signature of yii\rbac\ManagerInterface 2014-07-21 19:50:29 +04:00
Alexander Makarov
21910c61f9 Fixes #4310: code cleanup 2014-07-17 19:25:04 +04:00
Alexander Makarov
d4711c4698 Fixes #4310 2014-07-14 22:21:04 +04:00
Alexander Makarov
c68e5f1fdb Adjusted naming 2014-06-29 16:18:19 +04:00
Alexander Makarov
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
Alexander Makarov
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
Qiang Xue
5c84d3fd42 Fixes #3817: yii\rbac\PhpManager::getChildren() returns null instead of expected empty array 2014-06-11 22:59:51 -04:00
Allineer
f22953d092 Small typo in the framework/rbac/PhpManager.php 2014-05-21 11:42:40 +04:00
Klimov Paul
1641e057a9 VarDumper::export() applied over framework. 2014-05-20 16:35:12 +03:00
Alexander Makarov
e0b701bb87 Added SQL files for RBAC back 2014-05-07 20:49:03 +04:00
Alexander Makarov
ef4d9683ce Fixed RBAC migration for SQLite 2014-05-07 00:52:56 +04:00
Alexander Makarov
905e39ede9 RBAC migration is now aware of custom table names, speeded up RBAC tests 2014-05-07 00:19:33 +04:00
Alexander Makarov
12732cfa53 Fixed rbac tests to use migration 2014-05-06 21:02:35 +04:00
Alexander Makarov
42c566935e Fixes #2913: RBAC DbManager is now initialized via migration 2014-05-06 14:59:40 +04:00
Carsten Brandt
c27ac8ef0e updated phpdoc 2014-04-26 03:39:46 +02:00
Qiang Xue
2fb70cf00b Fixes #3158 2014-04-17 20:59:44 -04:00
Qiang Xue
66842a4806 Fixes test break. 2014-04-16 22:05:20 -04:00
Qiang Xue
14b782cf01 Added $user as the first parameter of yii\rbac\Rule::execute() 2014-04-16 21:52:46 -04:00
Qiang Xue
ce9a8f209a Fixes #3132: yii\rbac\PhpManager now supports more compact data file format 2014-04-16 10:17:28 -04:00
Qiang Xue
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