Commit | Line | Data |
---|---|---|
cf4e950c | 1 | <?php |
a9229942 | 2 | |
cf4e950c | 3 | namespace wcf\system\category; |
a9229942 | 4 | |
cf4e950c MS |
5 | use wcf\system\WCF; |
6 | ||
7 | /** | |
8 | * Category implementation for media files. | |
a9229942 TD |
9 | * |
10 | * @author Matthias Schmidt | |
11 | * @copyright 2001-2019 WoltLab GmbH | |
12 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
a9229942 | 13 | * @since 3.1 |
cf4e950c | 14 | */ |
a9229942 TD |
15 | class MediaCategoryType extends AbstractCategoryType |
16 | { | |
17 | /** | |
18 | * @inheritDoc | |
19 | */ | |
20 | protected $langVarPrefix = 'wcf.media.category'; | |
21 | ||
22 | /** | |
23 | * @inheritDoc | |
24 | */ | |
25 | protected $hasDescription = false; | |
26 | ||
27 | /** | |
28 | * @inheritDoc | |
29 | */ | |
30 | protected $maximumNestingLevel = 2; | |
31 | ||
32 | /** | |
33 | * @inheritDoc | |
34 | */ | |
35 | public function canAddCategory() | |
36 | { | |
37 | return WCF::getSession()->getPermission('admin.content.cms.canManageMedia'); | |
38 | } | |
39 | ||
40 | /** | |
41 | * @inheritDoc | |
42 | */ | |
43 | public function canDeleteCategory() | |
44 | { | |
45 | return WCF::getSession()->getPermission('admin.content.cms.canManageMedia'); | |
46 | } | |
47 | ||
48 | /** | |
49 | * @inheritDoc | |
50 | */ | |
51 | public function canEditCategory() | |
52 | { | |
53 | return WCF::getSession()->getPermission('admin.content.cms.canManageMedia'); | |
54 | } | |
d99c50fd | 55 | } |