Multi URLs session

This commit is contained in:
danpros 2024-01-06 19:09:01 +07:00
commit 28519f15a1
9 changed files with 37 additions and 37 deletions

View file

@ -2171,7 +2171,7 @@ function get_image($text)
// Return edit tab on post
function tab($p)
{
$user = $_SESSION[config("site.url")]['user'];
$user = $_SESSION[site_url()]['user'];
$role = user('role', $user);
if (isset($p->author)) {
if ($user === $p->author || $role === 'admin') {