myth-auth
myth-auth copied to clipboard
Bug: Group Permissions and User cache
User permissions cache is not updated when Group permissions are altered, creating a potential lag time between adding/removing a group permission and the update to the user.
I also encountered a problem like this, how to fix it? Any references to problems like this ?
I also encountered a problem like this, how to fix it? Any references to problems like this ?
There are three methods in GroupModel.php file which alter group permissions. They are addPermissionToGroup(), removePermissionFromGroup() and removePermissionFromAllGroups(). So after group permissions altered you should retrieve users which belong to that group and delete there user permisssions cache files.
Next time when there will be a call to get user's permissions, new data will be retrieved from database and saved to cache.