| | |
| | | } |
| | | |
| | | use JVBase\managers\Cache; |
| | | use JVBase\managers\RoleManager; |
| | | use JVBase\managers\Roles; |
| | | use JVBase\meta\Form; |
| | | use JVBase\registrar\Registrar; |
| | | |
| | |
| | | 'label' => 'Scrapped', |
| | | ] |
| | | ]; |
| | | $permission = JVB()->roles()->getContentPlural($content); |
| | | $permission = Roles::getInstance()()->getContentPlural($content); |
| | | $canPublish = current_user_can("publish_{$permission}") && current_user_can('skip_moderation'); |
| | | $out = '<div class="filters">'; |
| | | if (!empty($statusFilters)) { |
| | |
| | | 'disabled' => true, |
| | | ] |
| | | ]; |
| | | $permission = JVB()->roles()->getContentPlural($content); |
| | | $permission = Roles::getInstance()()->getContentPlural($content); |
| | | if (current_user_can('skip_moderation') && current_user_can("publish_{$permission}")) { |
| | | $bulkActions['publish']['disabled'] = false; |
| | | } |
| | |
| | | */ |
| | | function jvbRenderDateFilter(string $content):string |
| | | { |
| | | $cache = Cache::for('date_filter')->connect('post', true); |
| | | $cache = Cache::for('date_filter'); |
| | | $check = $cache->get($content); |
| | | if ($check) { |
| | | return $check; |