|
@@ 519-522 (lines=4) @@
|
| 516 |
|
{ |
| 517 |
|
global $txt, $context, $modSettings, $cur_profile; |
| 518 |
|
|
| 519 |
|
if (!$context['user']['is_owner']) |
| 520 |
|
isAllowedTo('profile_remove_any'); |
| 521 |
|
elseif (!allowedTo('profile_remove_any')) |
| 522 |
|
isAllowedTo('profile_remove_own'); |
| 523 |
|
|
| 524 |
|
// Permissions for removing stuff... |
| 525 |
|
$context['can_delete_posts'] = !$context['user']['is_owner'] && allowedTo('moderate_forum'); |
|
@@ 549-552 (lines=4) @@
|
| 546 |
|
|
| 547 |
|
// @todo Add a way to delete pms as well? |
| 548 |
|
|
| 549 |
|
if (!$context['user']['is_owner']) |
| 550 |
|
isAllowedTo('profile_remove_any'); |
| 551 |
|
elseif (!allowedTo('profile_remove_any')) |
| 552 |
|
isAllowedTo('profile_remove_own'); |
| 553 |
|
|
| 554 |
|
checkSession(); |
| 555 |
|
|