101 Commits

Author SHA1 Message Date
e4d9ed5182 code style fix 2016-03-09 10:17:41 +02:00
97bc4e0567 Fixed wrong case in method calls 2016-02-16 13:53:53 +03:00
effe3b0b94 phpdoc adjustments 2016-02-07 18:12:22 +01:00
60086507db Updated phpDoc to ManagerInterface::addChild() 2016-01-09 00:05:10 +03:00
cc4849a3ae Renamed getUserIDsByRole → getUserIdsByRole for consistency
See 0e0079bcae (commitcomment-14953758)
2015-12-14 12:34:00 +03:00
08034bbe10 Add @since [skip ci] 2015-12-14 00:03:46 +01:00
0e0079bcae Fixes #9573: Added yii\rbac\ManagerInterface::getUserIDsByRole() and implementations 2015-12-08 20:00:48 +03:00
be407391ce Fixes #10101: Fixed assignments saving on role removing in \yii\rbac\PhpManager 2015-11-06 19:54:35 +03:00
0900641ed4 fix documentation 2015-10-27 11:52:37 +01:00
43ce4e9192 Fixes #6876: Fixed RBAC migration MSSQL cascade problem 2015-10-21 00:07:11 +03:00
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +03:00
5ab4f0f090 Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
c2f83da8d8 Fix phpdoc 2015-10-05 15:00:13 +06:00
7b12f59fa9 Fixed phpdoc in RBAC migration 2015-09-27 19:41:58 +03:00
4f6bf4cdf2 Merge pull request #9634 from Vovan-VE/patch-1
Doc block confuse in ManagerInterface::getRolesByUser() [skip ci]
2015-09-27 19:36:57 +03:00
ed17ba31d0 Merge pull request #9722 from rezident1307/9714-fix-add-save-assignments-to-phpmanager
Bug #9714: Fixed unable to save users assignments
2015-09-24 16:22:48 +03:00
b647bac451 Schema is never used 2015-09-24 12:44:20 +02:00
0d4d54c3c7 Bug #9714: Fixed unable to save users assignments 2015-09-18 12:31:27 +03:00
8c9a9ed877 Doc block confuse in ManagerInterface
Confisung documentation block for ManagerInterface::getRolesByUser(). The method DOES NOT return roles assigned indirectly.
2015-09-08 10:18:50 +07:00
5569eaae06 Fixes #9314: Fixed yii\rbac\DbManager::getPermissionsByUser() not returning permissions directly assigned to a user 2015-09-05 01:31:10 +03:00
729e61e7cb Merge pull request #9299 from yiisoft/schemabuilder-refactoring
refactored SchemaBuilder
2015-08-04 11:21:23 +02:00
aef21ceec8 phpdoc typo 2015-08-03 23:38:58 +02:00
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(),
]);
```
2015-08-03 23:25:50 +02:00
6d9fe671de various code style and whitespace adjustments 2015-08-02 00:27:19 +02:00
8b951796ac Fixes #9263: Avoid extra DB query in RBAC DbManager in case auth item name is empty 2015-08-01 01:42:40 +03:00
9ae80e3a94 Update sintax 2015-07-09 18:29:17 +02:00
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
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
f11bdfa2a7 Grammar fix: followings -> following 2015-04-21 15:08:16 +02:00
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
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
6e33bef238 Fixes #7266 2015-02-13 14:02:54 -05:00
d188dd10c0 Fixes #3168: Improved the performance of yii\rbac\DbManager::checkAccess() by caching mechanism 2015-02-12 21:29:00 -05:00
6481d13494 Optimized checks order in conditions 2015-02-08 17:56:36 +03:00
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
402d58cfd8 Fixes #6081: yii\rbac\DbManager::getChildren() was not quoting column name properly 2014-11-27 00:28:55 +03:00
280dd1651d Fixes #6172: yii\rbac\DbManager should properly quote table and column names 2014-11-22 18:25:02 -05:00
b8cb5e2a28 Fixes #4263: Added migration and SQL schema files for yii\log\DbTarget 2014-11-06 23:22:26 +03:00
bb8550886e PHP type casting 2014-10-25 15:30:03 +03:00
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
f524e57076 use 'ON DELETE SET NULL' instead of 'ON DELETE CASCADE' 2014-10-16 08:11:07 -04:00
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
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
8fa4899e02 use utf8_unicode_ci instead of utf8_general_ci
fixes #5119
2014-09-22 12:46:22 +02: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
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00