typecho icon indicating copy to clipboard operation
typecho copied to clipboard

管理用户权限逻辑问题

Open 799723722 opened this issue 5 years ago • 14 comments

1. 该问题的重现步骤是什么?

答:在管理用户界面把管理员的权限修改成其他

2. 你期待的结果是什么?实际看到的又是什么?

答:我觉得应该会有一个提示消息告诉我这是最后一个拥有管理权限的用户了无法修改!实际上是我修改成功了,再也进不去管理页面!!!!! ps:还好机智的我想到直接在数据库文件修改回我的账号为管理员!成功占领回我失去的管理员后台,呼~~~长舒一口气

3. 问题出现的环境

  • 操作系统版本:任何
  • Apache/NGINX 版本:任何
  • 数据库版本:任何
  • PHP 版本:任何
  • Typecho 版本:任何
  • 浏览器版本:任何

799723722 avatar Oct 21 '20 12:10 799723722

啊我也是,然后自己就再也进不去管理员界面了

vastroc avatar Oct 25 '20 07:10 vastroc

啊我也是,然后自己就再也进不去管理员界面了

解决办法可以参考这里:http://jinlu.imwork.net/blog/index.php/archives/5/

799723722 avatar Oct 25 '20 07:10 799723722

好的,谢谢

------------------ Original ------------------ From: "799723722"<[email protected]>; Date: 2020年10月25日(星期天) 下午3:30 To: "typecho/typecho"<[email protected]>; Cc: "碰碰"<[email protected]>; "Comment"<[email protected]>; Subject: Re: [typecho/typecho] 管理用户权限逻辑问题 (#1022)

啊我也是,然后自己就再也进不去管理员界面了

解决办法可以参考这里:http://jinlu.imwork.net/blog/index.php/archives/5/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

vastroc avatar Oct 25 '20 07:10 vastroc

您好,昨天我看了您的方法,但是没有在usr目录下看到数据库呢

------------------ Original ------------------ From: "typecho/typecho" <[email protected]>; Date: Sun, Oct 25, 2020 03:30 PM To: "typecho/typecho"<[email protected]>; Cc: "碰碰"<[email protected]>;"Comment"<[email protected]>; Subject: Re: [typecho/typecho] 管理用户权限逻辑问题 (#1022)

啊我也是,然后自己就再也进不去管理员界面了

解决办法可以参考这里:http://jinlu.imwork.net/blog/index.php/archives/5/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

vastroc avatar Oct 26 '20 14:10 vastroc

您好,昨天我看了您的方法,但是没有在usr目录下看到数据库呢 ------------------ Original ------------------ From: "typecho/typecho" <[email protected]>; Date: Sun, Oct 25, 2020 03:30 PM To: "typecho/typecho"<[email protected]>; Cc: "碰碰"<[email protected]>;"Comment"<[email protected]>; Subject: Re: [typecho/typecho] 管理用户权限逻辑问题 (#1022) 啊我也是,然后自己就再也进不去管理员界面了 解决办法可以参考这里:http://jinlu.imwork.net/blog/index.php/archives/5/ — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

您在安装搭建博客的时候有更改过默认的数据库存放位置吗?如果更改过的话就需要到您更改的那个目录下找到数据库文件呢,如果忘记的话,可以找一下typecho的每个目录下看是否有

799723722 avatar Oct 26 '20 14:10 799723722

应该是没有更改过吧,但是我翻遍了目录也没有呢。。。

------------------ Original ------------------ From: "typecho/typecho" <[email protected]>; Date: Mon, Oct 26, 2020 10:31 PM To: "typecho/typecho"<[email protected]>; Cc: "碰碰"<[email protected]>;"Comment"<[email protected]>; Subject: Re: [typecho/typecho] 管理用户权限逻辑问题 (#1022)

您好,昨天我看了您的方法,但是没有在usr目录下看到数据库呢 … ------------------ Original ------------------ From: "typecho/typecho" <[email protected]>; Date: Sun, Oct 25, 2020 03:30 PM To: "typecho/typecho"<[email protected]>; Cc: "碰碰"<[email protected]>;"Comment"<[email protected]>; Subject: Re: [typecho/typecho] 管理用户权限逻辑问题 (#1022) 啊我也是,然后自己就再也进不去管理员界面了 解决办法可以参考这里:http://jinlu.imwork.net/blog/index.php/archives/5/ — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

您在安装搭建博客的时候有更改过默认的数据库存放位置吗?如果更改过的话就需要到您更改的那个目录下找到数据库文件呢,如果忘记的话,可以找一下typecho的每个目录下看是否有

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

vastroc avatar Oct 26 '20 14:10 vastroc

应该是没有更改过吧,但是我翻遍了目录也没有呢。。。

这样的话我也不太清楚你的是什么情况,一般来说正常安装成功的话数据库文件默认都是在usr目录下的

799723722 avatar Oct 29 '20 02:10 799723722

我已经解决了,是数据库的问题,谢谢~

---原始邮件--- 发件人: "799723722"<[email protected]> 发送时间: 2020年10月29日(周四) 上午10:08 收件人: "typecho/typecho"<[email protected]>; 抄送: "Comment"<[email protected]>;"Stray cat downstairs"<[email protected]>; 主题: Re: [typecho/typecho] 管理用户权限逻辑问题 (#1022)

应该是没有更改过吧,但是我翻遍了目录也没有呢。。。

这样的话我也不太清楚你的是什么情况,一般来说正常安装成功的话数据库文件默认都是在usr目录下的

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

vastroc avatar Oct 29 '20 02:10 vastroc

我已经解决了,是数据库的问题,谢谢〜

好的,不用客气~~

799723722 avatar Oct 29 '20 02:10 799723722

这个系统不能向外面提供API吧... 目前看了也不能实现页面静态化【纯html】吧

dcdebug avatar Oct 29 '20 06:10 dcdebug

这个系统不能向外面提供API吧... 目前看了也不能实现页面静态化【纯html】吧

结合我提出的问题,我不太能理解您的意思,你想表达什么吗?还是您评论错了。。。。

799723722 avatar Oct 29 '20 12:10 799723722

您一直发错邮箱了

---Original--- From: "799723722"<[email protected]> Sent at: 2020年10月29日(Thu) AM10:08 To: "typecho/typecho"<[email protected]>; Cc: "Comment"<[email protected]>;"Stray cat downstairs"<[email protected]>; Subject: Re: [typecho/typecho] 管理用户权限逻辑问题 (#1022)

应该是没有更改过吧,但是我翻遍了目录也没有呢。。。

这样的话我也不太清楚你的是什么情况,一般来说正常安装成功的话数据库文件默认都是在usr目录下的

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

vastroc avatar Oct 29 '20 12:10 vastroc

您一直发错邮箱了

呀哈,怎么回事,发到您那了嘛,抱歉打扰您了。我想回复的是另一个人的评论,不知道怎么也会发到您那

799723722 avatar Oct 29 '20 13:10 799723722

没事没事

---Original--- From: "799723722"<[email protected]> Sent at: 2020年10月29日(Thu) Evening9:00 To: "typecho/typecho"<[email protected]>; Cc: "Comment"<[email protected]>;"Stray cat downstairs"<[email protected]>; Subject: Re: [typecho/typecho] 管理用户权限逻辑问题 (#1022)

您一直发错邮箱了

呀哈,怎么回事,发到您那了嘛,抱歉打扰您了。我想回复的是另一个人的评论,不知道怎么也会发到您那

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

vastroc avatar Oct 29 '20 13:10 vastroc