Fixed User Permission Error

Affected version
2.0.0 Beta 1


Formerly Tilkißey
While resetting or changing user permissions, giving this error

ErrorException: Accessed unknown getter 'permisison_combination_id' on XF:PermissionCombination[7] in src\XF\Mvc\Entity\Entity.php at line 181
trigger_error() in src\XF\Mvc\Entity\Entity.php at line 181
XF\Mvc\Entity\Entity->get() in src\XF\Mvc\Entity\Entity.php at line 92
XF\Mvc\Entity\Entity->__get() in src\XF\Repository\PermissionCombination.php at line 48
XF\Repository\PermissionCombination->updatePermissionCombinationForUser() in src\XF\Service\UpdatePermissions.php at line 204
XF\Service\UpdatePermissions->triggerCacheRebuild() in src\XF\Service\UpdatePermissions.php at line 117
XF\Service\UpdatePermissions->updatePermissions() in src\XF\Admin\Controller\Permission.php at line 127
XF\Admin\Controller\Permission->actionUserSave() in src\XF\Mvc\Dispatcher.php at line 232
XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 85
XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src\XF\App.php at line 1771
XF\App->run() in src\XF.php at line 319
XF::runApp() in admin.php at line 13
It gives error based on job.
If i try to reset user's permissions, it gives as XF:PermissionCombination[7]. 7 was the first generated combination id
If i try change permissions, it gives as XF:PermissionCombination[8] 8 is second combination id
If i remove affected line (based on user_id) from xf_permission_combination, i can use permission system again just for one time.

src\XF\Repository\PermissionCombination.php Line 48
|| $combination->permisison_combination_id != $user->permission_combination_id);
I think it has a typo (permisison -> permission)
Last edited: