spartak

是否可以设定用户权限?

  •  
  •   spartak · Sep 21, 2010 · 5046 views
    This topic created in 5736 days ago, the information mentioned may be changed or developed.
    因为用pb来作博客或cms,想设定用户注册后只能回复不可发帖
    3 replies    1970-01-01 08:00:00 +08:00
    eth2net
        1
    eth2net  
       Sep 21, 2010
    http://github.com/livid/v2ex/wiki/Plan
    看到这是2.5.0的计划。
    xinzhi
        2
    xinzhi  
       Sep 21, 2010
    我就是这样做的,注册用户只能回复不能发帖。

    如果你自己能动手的话,直接修改topic.py,将第59行:
    if (member):
    修改为:
    if (member.num == 1):
    这样就只有管理员(ID为1)可以发帖了。
    spartak
        3
    spartak  
    OP
       Sep 25, 2010
    多谢 @xinzhi
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2503 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:53 · PVG 23:53 · LAX 08:53 · JFK 11:53
    ♥ Do have faith in what you're doing.