Index: trunk/extensions/LiquidThreads/classes/Thread.php |
— | — | @@ -1543,6 +1543,13 @@ |
1544 | 1544 | } |
1545 | 1545 | } |
1546 | 1546 | |
| 1547 | + $testTitle = Title::makeTitleSafe( NS_LQT_THREAD, 'test' ); |
| 1548 | + if ( ! $testTitle->userCan( 'create' ) || |
| 1549 | + ! $testTitle->userCan( 'edit' ) ) |
| 1550 | + { |
| 1551 | + return false; |
| 1552 | + } |
| 1553 | + |
1547 | 1554 | return true; |
1548 | 1555 | } |
1549 | 1556 | |
— | — | @@ -1555,6 +1562,13 @@ |
1556 | 1563 | } |
1557 | 1564 | } |
1558 | 1565 | |
| 1566 | + $testTitle = Title::makeTitleSafe( NS_LQT_THREAD, 'test' ); |
| 1567 | + if ( ! $testTitle->userCan( 'create' ) || |
| 1568 | + ! $testTitle->userCan( 'edit' ) ) |
| 1569 | + { |
| 1570 | + return false; |
| 1571 | + } |
| 1572 | + |
1559 | 1573 | return true; |
1560 | 1574 | } |
1561 | 1575 | |