Skip to content

Commit

Permalink
Revert "deposit: provide permissions to publish button"
Browse files Browse the repository at this point in the history
This reverts commit 25ddba6.
  • Loading branch information
ntarocco committed Sep 26, 2024
1 parent ef4ed72 commit 10afcfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 3 additions & 5 deletions invenio_app_rdm/records_ui/views/deposits.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,10 @@ def deposit_create(community=None):
files_locked=False,
permissions=get_record_permissions(
[
"delete_draft",
"manage",
"manage_files",
"delete_draft",
"manage_record_access",
"publish",
]
),
)
Expand Down Expand Up @@ -470,12 +469,11 @@ def deposit_edit(pid_value, draft=None, draft_files=None, files_locked=True):
files_locked=files_locked,
permissions=draft.has_permissions_to(
[
"delete_draft",
"manage",
"new_version",
"delete_draft",
"manage_files",
"manage_record_access",
"new_version",
"publish",
]
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,7 @@ export class RDMDepositForm extends Component {
</Grid.Column>

<Grid.Column width={16} className="pt-10">
<PublishButton
fluid
permissions={permissions}
record={record}
/>
<PublishButton fluid record={record} />
</Grid.Column>

<Grid.Column width={16} className="pt-0">
Expand Down

0 comments on commit 10afcfb

Please sign in to comment.