Skip to content

Commit

Permalink
Fix rights check
Browse files Browse the repository at this point in the history
relates to #1588
  • Loading branch information
ErikEJ committed Aug 4, 2023
1 parent 7bcdac1 commit 40fecbc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private void CheckViewDefinitionRights(DbConnection connection)
{
using var command = connection.CreateCommand();
command.CommandText = @"
SELECT HAS_PERMS_BY_NAME(DB_NAME(), 'DATABASE', 'VIEW DEFINITION');";
SELECT HAS_PERMS_BY_NAME(QUOTENAME(DB_NAME()), 'DATABASE', 'VIEW DEFINITION');";
var hasAccess = (int)command.ExecuteScalar()!;

if (hasAccess == 0)
Expand Down
Binary file modified src/GUI/lib/efreveng70.exe.zip
Binary file not shown.

0 comments on commit 40fecbc

Please sign in to comment.