Use Snapshots permission instead of Events for snapshots

This commit is contained in:
Isaac Connor 2021-04-12 15:57:58 -04:00
parent b125b5d370
commit 29e91f48e6
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ $data = array();
// INITIALIZE AND CHECK SANITY
//
if ( !canView('Events') ) $message = 'Insufficient permissions for user '.$user['Username'];
if ( !canView('Snapshots') ) $message = 'Insufficient permissions for user '.$user['Username'];
if ( empty($_REQUEST['task']) ) {
$message = 'Must specify a task';
@ -70,7 +70,7 @@ if ( isset($_REQUEST['limit']) ) {
switch ( $task ) {
case 'delete' :
if ( !canEdit('Events') ) {
if ( !canEdit('Snapshots') ) {
ajaxError('Insufficient permissions for user '.$user['Username']);
return;
}