Initial project files: BESCMS full source
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php namespace Phpcmf\Model\Copy;
|
||||
|
||||
// 权限验证
|
||||
class Auth_mform extends \Phpcmf\Model
|
||||
{
|
||||
|
||||
// 判断底部链接的显示权限
|
||||
public function is_bottom_auth($mid) {
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
// 判断右侧链接的显示权限
|
||||
public function is_link_auth($mid) {
|
||||
|
||||
// $mid 模块目录
|
||||
$fid = \Phpcmf\Service::C()->form['table']; // fid是表单表名称
|
||||
// 这里的程序体,显示返回1,不显示返回0
|
||||
|
||||
// 不存在
|
||||
if (!\Phpcmf\Service::C()->_is_admin_auth($mid.'/'.$fid.'/edit')) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user