Carsten Brandt
ee92cfa7ba
release version 2.0.9
2016-07-11 15:36:42 +02:00
Alberto Barradas Spezzia
b019d23281
Fix #11896 DROP TRIGGER for migrate/down in RBAC ( #11919 )
2016-07-07 23:34:36 +03:00
Sam Mousa
03e23adab8
Fixes #11679 : Extracted CheckAccessInterface from ManagerInterface
2016-06-09 15:15:44 +03:00
Alexander Makarov
94dfb97e69
Reverted #11702 : Added yii\rbac\DbManager::$assignmentTablePk to be able to customize RBAC DB schema more (reverted from commit 532242041c)
2016-06-07 11:39:48 +03:00
Jorge Robles
532242041c
Fixes #11702 : Added yii\rbac\DbManager::$assignmentTablePk to be able to customize RBAC DB schema more
2016-06-06 22:06:36 +03:00
jonny7
dca4f00030
Update schema-oci.sql ( #11662 )
...
- `if exists` is not a recognized oracle expression. To do something like this it needs to be in a package
- `text` is not a valid data type in oracle, adjusted to VARCHAR()
- `on update` does not exist in Oracle
2016-06-06 18:18:45 +02:00
Klimov Paul
c9fa71e5ca
added missing @since tag
2016-05-25 16:34:19 +03:00
Klimov Paul
b7b8348c73
yii\rbac\PhpManager now invalidates script file cache performed by 'OPCache' or 'APC' on file saving
2016-05-25 12:40:40 +03:00
Carsten Brandt
627233715b
proper @since annotations
2016-04-28 02:25:32 +02:00
Alexandr
0d81e351f0
Changed new instance creation style
2016-04-11 19:39:50 +03:00
Misbahul D Munir
0e17d652dc
Enhanced RBAC Rule assignment
...
* #11254 Enhanced RBAC Rule assignment
* Enhanced RBAC Rule assignment
2016-04-05 00:52:04 +03:00
Robbert Jan van de Velde
d438c03dbc
Bug #11223 : Fixed returning an empty array when DbManager::getRolesByUser() was called on a user with user id 0
...
* Bug #11223 : Fixed returning an empty array when DbManager::getRolesByUser() was called on a user with user id 0 (VirtualRJ)
* Added unit tests for #11223
2016-04-01 22:28:23 +03:00
LAV45
049ea37f77
Fixes #10993 : Fixed yii\rbac\DbManager::removeAllRules() and yii\rbac\PhpManager::removeAllItems()
2016-03-16 01:53:48 +03:00
Dmitry Khlystov
7eff23886c
Fixes #10726 : Added yii\rbac\ManagerInterface::canAddChild()
2016-03-15 22:43:27 +03:00
Klimov Paul
e4d9ed5182
code style fix
2016-03-09 10:17:41 +02:00
Alexander Makarov
97bc4e0567
Fixed wrong case in method calls
2016-02-16 13:53:53 +03:00
Carsten Brandt
effe3b0b94
phpdoc adjustments
2016-02-07 18:12:22 +01:00
Evgeniy Tkachenko
60086507db
Updated phpDoc to ManagerInterface::addChild()
2016-01-09 00:05:10 +03:00
Alexander Makarov
cc4849a3ae
Renamed getUserIDsByRole → getUserIdsByRole for consistency
...
See 0e0079bcae (commitcomment-14953758)
2015-12-14 12:34:00 +03:00
Daniel Gomez Pan
08034bbe10
Add @since [skip ci]
2015-12-14 00:03:46 +01:00
Alexander Makarov
0e0079bcae
Fixes #9573 : Added yii\rbac\ManagerInterface::getUserIDsByRole() and implementations
2015-12-08 20:00:48 +03:00
rezident1307
be407391ce
Fixes #10101 : Fixed assignments saving on role removing in \yii\rbac\PhpManager
2015-11-06 19:54:35 +03:00
Nikola Kovacs
0900641ed4
fix documentation
2015-10-27 11:52:37 +01:00
Adrian Liechti
43ce4e9192
Fixes #6876 : Fixed RBAC migration MSSQL cascade problem
2015-10-21 00:07:11 +03:00
Alexander Makarov
1b3770fd21
Use === instead of == where possible
2015-10-10 01:04:35 +03:00
Alexander Makarov
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
jeicd
c2f83da8d8
Fix phpdoc
2015-10-05 15:00:13 +06:00
Alexander Makarov
7b12f59fa9
Fixed phpdoc in RBAC migration
2015-09-27 19:41:58 +03:00
Alexander Makarov
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
Alexander Makarov
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
Daniel Gomez Pan
b647bac451
Schema is never used
2015-09-24 12:44:20 +02:00
Yuri Nazarenko
0d4d54c3c7
Bug #9714 : Fixed unable to save users assignments
2015-09-18 12:31:27 +03:00
Vladimir
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
Hesam Khaki
5569eaae06
Fixes #9314 : Fixed yii\rbac\DbManager::getPermissionsByUser() not returning permissions directly assigned to a user
2015-09-05 01:31:10 +03:00
Carsten Brandt
729e61e7cb
Merge pull request #9299 from yiisoft/schemabuilder-refactoring
...
refactored SchemaBuilder
2015-08-04 11:21:23 +02:00
Carsten Brandt
aef21ceec8
phpdoc typo
2015-08-03 23:38:58 +02:00
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(),
]);
```
2015-08-03 23:25:50 +02:00
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
2015-08-02 00:27:19 +02:00
Alexander Makarov
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
pana1990
9ae80e3a94
Update sintax
2015-07-09 18:29:17 +02:00
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