RichWeber
92cd13a913
pull origin
10 years ago
Alexander Makarov
c6569b1abe
Removed unnecessary code
10 years ago
Carsten Brandt
9e62d5589a
added unit test for #4489
10 years ago
Alexander Makarov
d1ccb92a34
Fixes #4489 : RBAC PhpManager wasn't saving multiple assignmentsFixes #4489 : RBAC PhpManager wasn't saving multiple assignments properly
10 years ago
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.
10 years ago
Carsten Brandt
1a7b4c5383
added testcase of @UncleCoder
...
e43c503c2d
issue #3817
10 years ago
Qiang Xue
14b782cf01
Added `$user` as the first parameter of `yii\rbac\Rule::execute()`
11 years ago
tof06
22596ca248
Implement new RBAC PhpManager
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
Alexander Makarov
40eb116640
Splitted saveRule into insertRule and updateRule
11 years ago
Alexander Makarov
f3dd74ff97
Removed custom Rule constructor
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
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Carsten Brandt
ecc066ac34
fixed condition for HHVM test
11 years ago
Carsten Brandt
614ac19c5c
exclude test with invalid PHP code from HHVM
11 years ago
Panagiotis Moustafellos
e16fb9596b
indentation fix
11 years ago
Panagiotis Moustafellos
820f840ce3
added revokeAll() test
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Alexander Makarov
7cd9123c3b
Tests cleanup
...
- Better names
- Removed not used MySQLTestCase
- Moved base testcase for DB to db namespace
- Minor style fixes
12 years ago
Klimov Paul
d4b896f65c
"ManagerTestBase::testExecuteBizRule()" has been fixed to not produce side effects on other tests.
12 years ago
Carsten Brandt
285a45520c
fixed auth manager unit test to not expect generic exception
...
This is not allowed by phpunit as a test may not fail anymore
12 years ago
resurtm
ea68bd3a55
CS fixes.
12 years ago
Alexander Kochetov
af3f5af3be
RBAC: Item and Assignment optimized save approach
12 years ago
Alexander Kochetov
bea449f8a0
Unit tests
12 years ago