//remove upload, delete, rename, create capabilities for frontend except if user is a super administrator if ((!$loggedBack) && ($my->gid != 25)) { $cfg['upload'] = false; $cfg['create'] = false; $cfg['delete'] = false; $cfg['rename'] = false; }