permisisions
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-07-26 08:59:39 +03:30
parent 185961c162
commit 1990e73368
5 changed files with 36 additions and 11 deletions
+3 -3
View File
@@ -104,10 +104,10 @@ const BlogCategory: FC = () => {
<Td text={moment(item.createdAt).format('jYYYY/jMM/jDD')} />
<Td text={t('')}>
<div className='flex gap-2 items-center'>
{canUpdate('blogs') && (
{canUpdate('blog_categories') && (
<UpdateCategory id={item.id} />
)}
{canDelete('blogs') && (
{canDelete('blog_categories') && (
<Trash size={20} color='red' onClick={() => {
deleteBlogCategory.mutateAsync(item.id, {
onSuccess: () => {
@@ -129,7 +129,7 @@ const BlogCategory: FC = () => {
</div>
</div>
</div>
{canCreate('blogs') && (
{canCreate('blog_categories') && (
<div className='relative bg-white min-h-[calc(100vh-185px)] w-sidebar xl:block hidden py-10 px-5 h-fit rounded-3xl'>
<p className='text-md'>{t('blog.add_category')}</p>
<div className='text-sm flex items-center justify-between mt-4'>