[vanillin commit] r302 - trunk/library/People

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 20, 2007, 7:26:16 PM10/20/07
to vanilli...@googlegroups.com
Author: helgith
Date: Sat Oct 20 16:25:22 2007
New Revision: 302

Modified:
trunk/library/People/RoleManager.php

Log:
For some weird reason the permissions weren't being serialized, fixing
that like this for now

Modified: trunk/library/People/RoleManager.php
==============================================================================
--- trunk/library/People/RoleManager.php (original)
+++ trunk/library/People/RoleManager.php Sat Oct 20 16:25:22 2007
@@ -142,7 +142,7 @@
$s->AddFieldNameValue('PERMISSION_SIGN_IN', $Role->PERMISSION_SIGN_IN);
$s->AddFieldNameValue('PERMISSION_HTML_ALLOWED', $Role->PERMISSION_HTML_ALLOWED);

$s->AddFieldNameValue('PERMISSION_RECEIVE_APPLICATION_NOTIFICATION', $Role->PERMISSION_RECEIVE_APPLICATION_NOTIFICATION);
- $s->AddFieldNameValue('Permissions', $Role->Permissions);
+ $s->AddFieldNameValue('Permissions', serialize($Role->Permissions));
if ($Role->RoleID > 0) {
$s->AddWhere('r', 'RoleID', '', $Role->RoleID, '=');
$db->Update($s, $this->Name, 'SaveRole', 'An error
occurred while attempting to update the role.');

Reply all
Reply to author
Forward
0 new messages