1 webalong Feb 11, 2005 20:08
3 adu Feb 15, 2005 21:25
are u still able to edit from the admin account
4 topanga Feb 15, 2005 22:40
When I edited/deleted the admin source I allways did a test on being admin.
if( $current_User->get( 'ID' ) == 1 )
{ // user is admin
5 webalong Feb 16, 2005 04:19
adu wrote:
are u still able to edit from the admin account
Yes, I did what Topanga illustrated. I check if the user is an admin or not and then only displayed the options if the user is an admin.
Of course if someone is familiar with b2 (as many are) then they could call the admin/b2blogs.php module directly through the URL once they have logged in.
So, I will have to also have some code in their to check if they are admin and then redirect them to another page or display a message if they are not an admin.
:D I figured it out.
I needed to edit _menutop.php.
The edits are pretty simple, so when there is an upgrade I should be able to redo the changes if needed.
Having the ability to not allow access to those tabs by the admin might be a nice feature though.