Commit 7f6c7cce authored by Zachary Doll's avatar Zachary Doll

Remove serializing and unserializing of user permissions'

parent 304231ec
......@@ -513,12 +513,10 @@ class YagaHooks implements Gdn_IPlugin {
if($Permission === '') {
return;
}
$TempPerms = unserialize($User->Permissions);
$TempPerms =& $User->Permissions;
$Key = array_search($Permission, $TempPerms);
if($Key) {
unset($TempPerms[$Key]);
$User->Permissions = serialize($TempPerms);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment