to get the access to new MCP page controlled I want to add new local permissions.
At the ACL_OTPION_TABLE I have added:
n_ - 0 - 1 - 0
n_leader - 0 - 1 - 0
At the ACL_ROLES_TABLE I have added:
ROLE_NEWSLETTER_LEADER - ROLE_NEWSLETTER_LEADER_EXPLAIN - n_ - 1
At the ACL_ROLES_DATA_TABLE I've added two entries with the two options and the same role.
At the ACL_USERS_TABLE I have added a new column called newsletter_id and I have a entry for one user to test the n_leader (moderator) permission. I looks like a forum moderator permission but forum_id = 0 and newsletter_id ist set to the id of the newsletter.
At the the info for the MCP page I have:
Code: Select all
'send' => array('title' => 'MCP_NEWSLETTER_SEND', 'auth' => 'acln_leader || acl_a_newsletter', 'cat' => array('MCP_NEWSLETTER')),
Code: Select all
'U_MCP' => (newsletter_leader_status($user->data['user_id'], $newsletter_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "n=$newsletter_id&i=newsletter&mode=send", true, $user->session_id) : '',
The acl_a_newsletter permission is running well.Module not accessible
Bye Martin