mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 05:26:22 +05:30
Multi URLs session
This commit is contained in:
parent
90759d673c
commit
28519f15a1
9 changed files with 37 additions and 37 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue